Skip to content

Commit b49a92f

Browse files
committed
feat(rbac): grant ugc permissions to app roles
Assigns the new engagement and report permissions to the `_appGuestUserPermissions` set. Since guest, standard, and premium users all inherit from this base set, this change grants all application users the ability to create and manage their own engagements and reports. This is a necessary step to allow users to interact with the new community features.
1 parent ecd8f57 commit b49a92f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/src/rbac/role_permissions.dart

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,19 @@ final Set<String> _appGuestUserPermissions = {
2525
Permissions.pushNotificationDeviceCreateOwned,
2626
Permissions.pushNotificationDeviceDeleteOwned,
2727
Permissions.pushNotificationDeviceReadOwned,
28+
2829
// Allow all app users to manage their own in-app notifications.
2930
Permissions.inAppNotificationReadOwned,
3031
Permissions.inAppNotificationUpdateOwned,
3132
Permissions.inAppNotificationDeleteOwned,
33+
34+
// UGC Permissions
35+
Permissions.engagementCreateOwned,
36+
Permissions.engagementReadOwned,
37+
Permissions.engagementUpdateOwned,
38+
Permissions.engagementDeleteOwned,
39+
Permissions.reportCreateOwned,
40+
Permissions.reportReadOwned,
3241
};
3342

3443
final Set<String> _appStandardUserPermissions = {

0 commit comments

Comments
 (0)