File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
apps/studio/src/server/modules Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -538,7 +538,7 @@ export const pageRouter = router({
538538 await validateUserPermissionsForResource ( {
539539 userId : ctx . user . id ,
540540 siteId,
541- action : "update " ,
541+ action : "publish " ,
542542 } )
543543 return publishPageResource (
544544 ctx . logger ,
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export const validateUserPermissionsForResource = async ({
8181 action,
8282 resourceId = null ,
8383 ...rest
84- } : PermissionsProps & { action : CrudResourceActions } ) => {
84+ } : PermissionsProps & { action : CrudResourceActions | "publish" } ) => {
8585 // TODO: this is using site wide permissions for now
8686 // we should fetch the oldest `parent` of this resource eventually
8787 const hasCustomParentId = resourceId === null || action === "create"
You can’t perform that action at this time.
0 commit comments