rbac roles implementation

This commit is contained in:
2026-04-30 14:22:12 +02:00
parent 6679ed20fe
commit 76a30fc94f
7 changed files with 190 additions and 43 deletions

View File

@@ -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');