lib/scrivito/client_config.rb in scrivito_sdk-0.41.1 vs lib/scrivito/client_config.rb in scrivito_sdk-0.42.0
- old
+ new
@@ -72,10 +72,11 @@
end
end
def user_permissions_config
{
- publish_workspace: editor.can?(:publish, selected_workspace)
+ create_workspace: editor.can?(:create, :workspace),
+ publish_workspace: editor.can?(:publish, selected_workspace),
}
end
def user_config
{