scripts/apps/users/directives/UserPrivilegesDirective.ts
Function UserPrivilegesDirective
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function UserPrivilegesDirective(api, notify, userList, $q) {
return {
scope: {
user: '=',
},
Function link
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function(scope) {
getUser()
.then(getPrivileges)
.then(getUserRole);