Skip to content

Commit

Permalink
ignore presence role for access
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroldwong committed Nov 2, 2023
1 parent 41f3c55 commit f3bdd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/shared/entities/CurrentUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const CurrentUser = angular.module('CurrentUser', ['UserRole'])
if (!this.userRoles) { return []; }
return _.uniq( // eslint-disable-line no-undef
this.userRoles
.filter(function (ur) { return ur.workgroupId > 0; })
.filter(function (ur) { return ur.workgroupId > 0 && ur.roleName !== 'presence'; })
.map(function (ur) { return { id: ur.workgroupId, name: ur.workgroupName }; }),
'id'
);
Expand Down

0 comments on commit f3bdd4c

Please sign in to comment.