Skip to content

Commit b38cc4a

Browse files
committed
feat(rbac): add localAd permissions for guest and admin users
- Add localAd read permission for app guest users - Add localAd CRUD permissions for dashboard admin users
1 parent 677e85f commit b38cc4a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/src/rbac/role_permissions.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ final Set<String> _appGuestUserPermissions = {
1414
Permissions.userContentPreferencesReadOwned,
1515
Permissions.userContentPreferencesUpdateOwned,
1616
Permissions.remoteConfigRead,
17+
Permissions.localAdRead,
1718
// Allows a user to update their own User object. This is essential for
1819
// features like updating the `feedActionStatus` (e.g., when a user
1920
// dismisses an in-feed prompt, etc). The endpoint handler ensures only
@@ -72,6 +73,11 @@ final Set<String> _dashboardAdminPermissions = {
7273
Permissions.remoteConfigUpdate,
7374
Permissions.remoteConfigDelete,
7475
Permissions.userPreferenceBypassLimits,
76+
// Added localAd CRUD permissions for admins
77+
Permissions.localAdCreate,
78+
Permissions.localAdRead,
79+
Permissions.localAdUpdate,
80+
Permissions.localAdDelete,
7581
};
7682

7783
/// Defines the mapping between user roles (both app and dashboard) and the

0 commit comments

Comments
 (0)