Skip to content

Commit fa29638

Browse files
author
Dobbias Nan
committed
added new pointer-perm regex to permissions
1 parent 4d5aee4 commit fa29638

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Controllers/SchemaController.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,8 @@ const volatileClasses = Object.freeze([
176176
const userIdRegex = /^[a-zA-Z0-9]{10}$/;
177177
// Anything that start with role
178178
const roleRegex = /^role:.*/;
179+
// Anything that start with readUserFields
180+
const pointerPermissionRegex = /^readUserFields:.*/;
179181
// * permission
180182
const publicRegex = /^\*$/;
181183

@@ -184,6 +186,7 @@ const requireAuthenticationRegex = /^requiresAuthentication$/;
184186
const permissionKeyRegex = Object.freeze([
185187
userIdRegex,
186188
roleRegex,
189+
pointerPermissionRegex,
187190
publicRegex,
188191
requireAuthenticationRegex,
189192
]);

0 commit comments

Comments
 (0)