-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a172d78
commit cd08992
Showing
18 changed files
with
955 additions
and
274 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package utils | ||
|
||
import authz "github.com/zeiss/fiber-authz" | ||
|
||
const ( | ||
// PermissionAdmin grants all permissions on a team | ||
PermissionAdmin = authz.AuthzAction("admin") | ||
// PermissionSuperAdmin grants all permissions | ||
PermissionSuperAdmin = authz.AuthzAction("superadmin") | ||
// PermissionCreate grants the ability to create | ||
PermissionCreate = authz.AuthzAction("create") | ||
// PermissionDelete grants the ability to delete | ||
PermissionDelete = authz.AuthzAction("delete") | ||
// PermissionEdit grants the ability to edit | ||
PermissionEdit = authz.AuthzAction("edit") | ||
// PermissionView grants the ability to read | ||
PermissionView = authz.AuthzAction("view") | ||
) | ||
|
||
const ( | ||
// RoleAdmin grants all permissions on a team | ||
RoleAdmin = authz.AuthzAction("Admin") | ||
// RoleSuperAdmin grants all permissions | ||
RoleSuperAdmin = authz.AuthzAction("Super Admin") | ||
// RoleOwner grants all permissions | ||
RoleOwner = authz.AuthzAction("Owner") | ||
// Editor grants the ability to edit | ||
RoleEditor = authz.AuthzAction("Editor") | ||
// RoleViewer grants the ability to read | ||
RoleViewer = authz.AuthzAction("Viewer") | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.