Skip to content

Commit 53431af

Browse files
committed
dist files
1 parent 856bd80 commit 53431af

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

angular-acl.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,14 @@ angular.module('mm.acl').provider('AclService', [
158158
return (data.roles.indexOf(role) > -1);
159159
};
160160

161+
/**
162+
* Returns the current user roles
163+
* @returns {Array}
164+
*/
165+
AclService.getRoles = function () {
166+
return data.roles;
167+
};
168+
161169
/**
162170
* Set the abilities object (overwriting previous abilities)
163171
*

angular-acl.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)