Skip to content

Commit 3b030b2

Browse files
committed
Increase length to 81 chars
1 parent 65e6846 commit 3b030b2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Database/Validator/Roles.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,11 @@ protected function isValidRole(
241241
self::ROLE_LABEL => new Label(),
242242
default => new Key(),
243243
};
244-
$dimensionValidator = new Key(maxLength: 60);
244+
/**
245+
* For project-specific permissions, roles will be in the format `project-<projectId>-<role>`.
246+
* Template takes 9 characters, `projectId` and `role` can be upto 36 characters. In total, 81 characters.
247+
*/
248+
$dimensionValidator = new Key(maxLength: 81);
245249

246250
$config = self::CONFIG[$role] ?? null;
247251

0 commit comments

Comments
 (0)