File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -238,8 +238,10 @@ export default defineComponent({
238238 },
239239 },
240240 setup(props ) {
241+ const workspacePermissionsEditable = computed (() => store .getters .permissionLevel >= RoleLevel .maintainer );
242+
241243 const route = useRoute ();
242- const permDialog = ref (route .query .permissions === ' true' );
244+ const permDialog = ref (workspacePermissionsEditable && route .query .permissions === ' true' );
243245 const mutablePermissions: Ref <WorkspacePermissionsSpec | null > = ref (null );
244246 const userSearchString: Ref <string | null > = ref (null );
245247 const userSearchResults: Ref <UserSearchResult []> = ref ([]);
@@ -310,8 +312,6 @@ export default defineComponent({
310312 }
311313 const throttledUserSearch = debounce (searchUsers , 200 );
312314
313- const workspacePermissionsEditable = computed (() => store .getters .permissionLevel >= RoleLevel .maintainer );
314-
315315 function initMutableData(permissions : WorkspacePermissionsSpec ) {
316316 mutablePermissions .value = cloneDeep (permissions );
317317 publicToggle .value = permissions .public ;
You can’t perform that action at this time.
0 commit comments