Project e Todos sistemati...
aggiunti Gruppi
This commit is contained in:
@@ -383,6 +383,14 @@ UserSchema.statics.isZoomeri = function (perm) {
|
||||
}
|
||||
};
|
||||
|
||||
UserSchema.statics.isDepartment = function (perm) {
|
||||
try {
|
||||
return ((perm & shared_consts.Permissions.Zoomeri) === shared_consts.Permissions.Department);
|
||||
} catch (e) {
|
||||
return false
|
||||
}
|
||||
};
|
||||
|
||||
UserSchema.statics.isTutor = function (perm) {
|
||||
try {
|
||||
return ((perm & shared_consts.Permissions.Tutor) === shared_consts.Permissions.Tutor);
|
||||
|
||||
Reference in New Issue
Block a user