-
Notifications
You must be signed in to change notification settings - Fork 55.5k
fix: Admin should be able to install community nodes #26296
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
aa806e9
3e359ee
4ce77a6
0401bdb
082672d
c494efc
36c749d
65a305f
9cae59c
b5ff4fe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -39,7 +39,7 @@ export function useInstallNode() { | |||||
| const nodeTypesStore = useNodeTypesStore(); | ||||||
| const credentialsStore = useCredentialsStore(); | ||||||
| const workflowsStore = useWorkflowsStore(); | ||||||
| const isOwner = computed(() => useUsersStore().isInstanceOwner); | ||||||
| const isAdmin = computed(() => useUsersStore().isAdmin); | ||||||
| const loading = ref(false); | ||||||
| const toast = useToast(); | ||||||
| const canvasOperations = useCanvasOperations(); | ||||||
|
|
@@ -56,7 +56,7 @@ export function useInstallNode() { | |||||
| }; | ||||||
|
|
||||||
| const installNode = async (props: InstallNodeProps): Promise<InstallNodeResult> => { | ||||||
| if (!isOwner.value) { | ||||||
| if (!isAdmin.value) { | ||||||
cubic-dev-ai[bot] marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||
| const error = new Error('User is not an owner'); | ||||||
|
||||||
| const error = new Error('User is not an owner'); | |
| const error = new Error('User is not an owner or an admin'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RomanDavydchuk I did search through the code base and found/updated more places with owner checks related to node installation/management. Now the admin will also see the buttons to manage and update nodes - they already had the rights to do so (in the backend/role/scope), it was only not displayed.
Uh oh!
There was an error while loading. Please reload this page.