Skip to content

Commit ea11a39

Browse files
committed
feat(routes): add dependency injection for local ad repository
- Add provider for DataRepository<LocalAd> in middleware - Inject localAdRepository using deps.localAdRepository
1 parent 0a279a0 commit ea11a39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/src/rbac/permissions.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ abstract class Permissions {
6969
'user_preference.bypass_limits';
7070

7171
// Local Ad Permissions
72-
static const String localAdCreate = 'localAd.create';
73-
static const String localAdRead = 'localAd.read';
74-
static const String localAdUpdate = 'localAd.update';
75-
static const String localAdDelete = 'localAd.delete';
72+
static const String localAdCreate = 'local_ad.create';
73+
static const String localAdRead = 'local_ad.read';
74+
static const String localAdUpdate = 'local_ad.update';
75+
static const String localAdDelete = 'local_ad.delete';
7676

7777
// General System Permissions
7878
static const String rateLimitingBypass = 'rate_limiting.bypass';

0 commit comments

Comments
 (0)