feat(logs): add workspace activity log api
This commit is contained in:
@@ -7,6 +7,7 @@ from apps.workspaces.models import Workspace, WorkspaceMembership
|
||||
WORKSPACE_VIEW = "workspace.view"
|
||||
WORKSPACE_EDIT = "workspace.edit"
|
||||
WORKSPACE_DELETE = "workspace.delete"
|
||||
WORKSPACE_LOGS_VIEW = "workspace.logs.view"
|
||||
WORKSPACE_MEMBERS_VIEW = "workspace.members.view"
|
||||
WORKSPACE_MEMBERS_ADD = "workspace.members.add"
|
||||
WORKSPACE_MEMBERS_REMOVE = "workspace.members.remove"
|
||||
@@ -45,6 +46,7 @@ WORKSPACE_ROLE_CAPABILITIES = {
|
||||
WORKSPACE_VIEW,
|
||||
WORKSPACE_EDIT,
|
||||
WORKSPACE_DELETE,
|
||||
WORKSPACE_LOGS_VIEW,
|
||||
WORKSPACE_MEMBERS_VIEW,
|
||||
WORKSPACE_MEMBERS_ADD,
|
||||
WORKSPACE_MEMBERS_REMOVE,
|
||||
@@ -72,6 +74,7 @@ WORKSPACE_ROLE_CAPABILITIES = {
|
||||
WorkspaceMembership.Role.ADMIN: {
|
||||
WORKSPACE_VIEW,
|
||||
WORKSPACE_EDIT,
|
||||
WORKSPACE_LOGS_VIEW,
|
||||
WORKSPACE_MEMBERS_VIEW,
|
||||
WORKSPACE_MEMBERS_ADD,
|
||||
WORKSPACE_MEMBERS_REMOVE,
|
||||
|
||||
Reference in New Issue
Block a user