feat(rbac): added rest of permissions in ui and backend api for org level

This commit is contained in:
Akhil Mohan
2023-09-08 21:20:29 +05:30
parent c5f76b1e6f
commit 96437fd1b7
16 changed files with 1253 additions and 58 deletions
@@ -135,18 +135,21 @@ export const getRoles = async (req: Request, res: Response) => {
data: {
roles: [
{
_id: "owner",
name: "Owner",
slug: "owner",
description: "Complete administration access over the organization.",
permissions: adminPermissions.rules
},
{
_id: "admin",
name: "Admin",
slug: "admin",
description: "Complete administration access over the organization",
permissions: adminPermissions.rules
},
{
_id: "member",
name: "Member",
slug: "member",
description: "Non-administrative role in an organization",