rbac roles implementation
This commit is contained in:
@@ -346,6 +346,10 @@ async removeUserFromGroup(authId, groupId) {
|
||||
// =========================================================
|
||||
// 🎭 ROLE CRUD
|
||||
// =========================================================
|
||||
async getRole() {
|
||||
const role = this.db.get('roleOverviewView');
|
||||
return await role.findAll({ raw: true }) || [];
|
||||
}
|
||||
|
||||
async createRole(data) {
|
||||
const Role = this.db.get('rolesModel');
|
||||
|
||||
Reference in New Issue
Block a user