Skip to content

Commit 1929991

Browse files
committed
refactor(rbac): remove local ad permissions and role assignments
- Remove local ad related permissions from permissions.dart - Remove local ad related permissions from role_permissions.dart - Update guest and admin role permissions accordingly
1 parent 7f42386 commit 1929991

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

lib/src/rbac/permissions.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@ abstract class Permissions {
7373
static const String userPreferenceBypassLimits =
7474
'user_preference.bypass_limits';
7575

76-
// Local Ad Permissions
77-
static const String localAdCreate = 'local_ad.create';
78-
static const String localAdRead = 'local_ad.read';
79-
static const String localAdUpdate = 'local_ad.update';
80-
static const String localAdDelete = 'local_ad.delete';
81-
8276
// General System Permissions
8377
static const String rateLimitingBypass = 'rate_limiting.bypass';
8478

lib/src/rbac/role_permissions.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ final Set<String> _appGuestUserPermissions = {
1414
Permissions.userContentPreferencesReadOwned,
1515
Permissions.userContentPreferencesUpdateOwned,
1616
Permissions.remoteConfigRead,
17-
Permissions.localAdRead,
1817
// Allows a user to update their own User object. This is essential for
1918
// features like updating the `feedActionStatus` (e.g., when a user
2019
// dismisses an in-feed prompt, etc). The endpoint handler ensures only
@@ -90,11 +89,6 @@ final Set<String> _dashboardAdminPermissions = {
9089
Permissions.remoteConfigUpdate,
9190
Permissions.remoteConfigDelete,
9291
Permissions.userPreferenceBypassLimits,
93-
// Added localAd CRUD permissions for admins
94-
Permissions.localAdCreate,
95-
Permissions.localAdRead,
96-
Permissions.localAdUpdate,
97-
Permissions.localAdDelete,
9892
};
9993

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

0 commit comments

Comments
 (0)