File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ export default class Group {
267267 if ( ! this . isValidRolesMap ( roles ) )
268268 throw new Error ( "Invalid roles. Must be a JSON Object with keys as roles and values as arrays of permissions or space-delimited strings." )
269269 this . data . customRoles = roles
270- await this . update ( )
270+ return this . update ( )
271271 }
272272
273273 async addCustomRoles ( roleMap ) {
@@ -277,7 +277,7 @@ export default class Group {
277277 if ( ! this . isValidRolesMap ( roleMap ) )
278278 throw new Error ( "Invalid roles. Must be a JSON Object with keys as roles and values as arrays of permissions or space-delimited strings." )
279279 this . data . customRoles = { ...this . data . customRoles , ...roleMap }
280- await this . update ( )
280+ return this . update ( )
281281 }
282282
283283 async removeCustomRoles ( roleName ) {
@@ -286,7 +286,7 @@ export default class Group {
286286 }
287287
288288 delete this . data . customRoles [ roleName ]
289- await this . update ( )
289+ return this . update ( )
290290 }
291291
292292 async save ( ) {
You can’t perform that action at this time.
0 commit comments