File tree Expand file tree Collapse file tree 3 files changed +6
-52
lines changed Expand file tree Collapse file tree 3 files changed +6
-52
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ analyzer:
8
8
lines_longer_than_80_chars : ignore
9
9
avoid_dynamic_calls : ignore
10
10
avoid_catching_errors : ignore
11
+ document_ignores : ignore
11
12
exclude :
12
13
- build/**
13
14
linter :
Original file line number Diff line number Diff line change
1
+ // ignore_for_file: public_member_api_docs
2
+
1
3
/// Defines the roles and permissions used in the RBAC system.
2
4
///
3
5
/// Permissions are defined as constants in the format `resource.action` .
4
6
/// Roles are defined as constants.
5
7
/// The `rolePermissions` map defines which permissions are granted to each role.
6
8
9
+ library ;
10
+
7
11
/// {@template role}
8
12
/// Defines the available user roles in the system.
9
13
/// {@endtemplate}
@@ -60,7 +64,7 @@ abstract class Permission {
60
64
/// The key is the role string, and the value is a set of permission strings.
61
65
final Map <String , Set <String >> rolePermissions = {
62
66
Role .admin: {
63
- // Admins have all permissions. In a real system, you might have a more
67
+ // Admins have all permissions. You might have a more
64
68
// sophisticated way to represent this, but listing them explicitly is clear.
65
69
Permission .headlineRead,
66
70
Permission .headlineCreate,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments