You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -134,6 +137,28 @@ public function canExecuteCommand(CommandInterface $command): Privilege
134
137
}
135
138
return Privilege::granted(sprintf('User has "manage" permissions for workspace "%s" and "read" permissions for base workspace "%s"', $command->workspaceName->value, $command->baseWorkspaceName->value));
136
139
}
140
+
if ($commandinstanceof PublishWorkspace || $commandinstanceof PublishIndividualNodesFromWorkspace) {
return Privilege::denied(sprintf('Missing "write" permissions for base workspace "%s": %s', $baseWorkspace->workspaceName->value, $baseWorkspacePermissions->getReason()));
159
+
}
160
+
return Privilege::granted(sprintf('User has "manage" permissions for workspace "%s" and "write" permissions for base workspace "%s"', $command->workspaceName->value, $baseWorkspace->workspaceName->value));
161
+
}
137
162
returnmatch ($command::class) {
138
163
AddDimensionShineThrough::class,
139
164
ChangeNodeAggregateName::class,
@@ -143,8 +168,6 @@ public function canExecuteCommand(CommandInterface $command): Privilege
0 commit comments