Skip to content

Commit 61f1a3f

Browse files
committed
feat(rbac): add permissions for app review management
Introduces a new set of permissions for the `AppReview` resource. This follows the established `resource.action_owned` pattern for user-generated content, defining `create`, `read`, and `update` permissions. These will be used to control user access to their own app review records.
1 parent 08d50cf commit 61f1a3f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/src/rbac/permissions.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,14 @@ abstract class Permissions {
123123

124124
/// Allows reading the user's own reports.
125125
static const String reportReadOwned = 'report.read_owned';
126+
127+
// App Review Permissions (User-owned)
128+
/// Allows creating an app review record.
129+
static const String appReviewCreateOwned = 'app_review.create_owned';
130+
131+
/// Allows reading the user's own app review record.
132+
static const String appReviewReadOwned = 'app_review.read_owned';
133+
134+
/// Allows updating the user's own app review record.
135+
static const String appReviewUpdateOwned = 'app_review.update_owned';
126136
}

0 commit comments

Comments
 (0)