Skip to content

Commit 599317e

Browse files
committed
feat(rbac): add permission for reading owned push notification devices
- Add new permission 'push_notification_device.read_owned' in permissions.dart - Include the new permission in the _appGuestUserPermissions set in role_permissions.dart
1 parent 4c2c706 commit 599317e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/src/rbac/permissions.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ abstract class Permissions {
8989
'push_notification_device.create_owned';
9090
static const String pushNotificationDeviceDeleteOwned =
9191
'push_notification_device.delete_owned';
92+
// Allows reading the user's own push notification devices.
93+
static const String pushNotificationDeviceReadOwned =
94+
'push_notification_device.read_owned';
9295

9396
// In-App Notification Permissions (User-owned)
9497
/// Allows reading the user's own in-app notifications.

lib/src/rbac/role_permissions.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ final Set<String> _appGuestUserPermissions = {
2424
// notifications.
2525
Permissions.pushNotificationDeviceCreateOwned,
2626
Permissions.pushNotificationDeviceDeleteOwned,
27+
Permissions.pushNotificationDeviceReadOwned,
2728
// Allow all app users to manage their own in-app notifications.
2829
Permissions.inAppNotificationReadOwned,
2930
Permissions.inAppNotificationUpdateOwned,

0 commit comments

Comments
 (0)