Skip to content

Commit

Permalink
feat(): add owner permission (#1473)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordantsanz authored Apr 17, 2024
1 parent 468064c commit d539c92
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export const InitiativePermissions = [
"hub:initiative:delete",
"hub:initiative:edit",
"hub:initiative:view",
"hub:initiative:owner",
"hub:initiative:canChangeAccess",
"hub:initiative:events",
"hub:initiative:content",
Expand Down Expand Up @@ -62,6 +63,12 @@ export const InitiativePermissionPolicies: IPermissionPolicy[] = [
authenticated: false,
licenses: ["hub-premium", "hub-basic"],
},
{
permission: "hub:initiative:owner",
dependencies: ["hub:initiative"],
authenticated: true,
entityOwner: true,
},
{
permission: "hub:initiative:edit",
services: ["portal"],
Expand Down

0 comments on commit d539c92

Please sign in to comment.