Permissions Setup
Understanding Permissions
Appwrite uses role-based permissions:Collection Permissions
Public Content (Read-Only)
For collections that visitors can view but only admins can edit: Collections:blogs, projects, products, blog_categories, project_categories, shop_categories, header_section, about_me, menubar_settings
Private Content
For collections with sensitive data: Collections:orders, shortlink_analytics
Admin-Only Content
Collections:shortlinks, shortlink_domains, custom_fonts
Setting Permissions in Console
1
Open Collection
Go to Databases →
portfolio_db → Select collection2
Go to Settings
Click the Settings tab
3
Configure Permissions
Under Permissions, click Add Role and set:
- Select role (Any, Users, etc.)
- Check permissions (Read, Create, Update, Delete)
4
Save
Click Update to save changes
Storage Bucket Permissions
Public Buckets (Images)
For image buckets that need public viewing:Private Buckets
Fororder-files bucket:
Document-Level Security
For orders, you may want document-level security so users can only see their own orders:- Enable Document Security in collection settings
- When creating an order, set permissions: