refactor(permission-management): improve code quality

pull/4788/head
mehmet-erim 5 years ago
parent cfab52042c
commit 3d7a385ff8

@ -281,7 +281,7 @@ export class PermissionManagementComponent
) as ApplicationConfiguration.CurrentUser;
if (this.providerName === 'R') {
return currentUser.roles.findIndex(role => role === this.providerKey) > -1;
currentUser.roles.some(role => role === this.providerKey);
}
if (this.providerName === 'U') {

Loading…
Cancel
Save