- Added Delete Record to the CGridTableRec
This commit is contained in:
@@ -160,6 +160,14 @@ UserSchema.statics.isAdmin = function (user) {
|
||||
}
|
||||
};
|
||||
|
||||
UserSchema.statics.isManager = function (user) {
|
||||
try {
|
||||
return ((user.perm & shared_consts.Permissions.Manager) === shared_consts.Permissions.Manager);
|
||||
}catch (e) {
|
||||
return false
|
||||
}
|
||||
};
|
||||
|
||||
UserSchema.statics.findByToken = function (token, typeaccess) {
|
||||
const User = this;
|
||||
let decoded;
|
||||
|
||||
Reference in New Issue
Block a user