Board without Manager. #249

Closed
opened 2026-02-04 18:05:41 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @Dev0Louis on GitHub (Nov 20, 2022).

Hey, I deleted an Account that was the Manager of an Board.
Even as "general" Admin I cant delete the Board or set my self as Manager.

Do you know how I can set my self Manager or delete the Board?

Originally created by @Dev0Louis on GitHub (Nov 20, 2022). Hey, I deleted an Account that was the Manager of an Board. Even as "general" Admin I cant delete the Board or set my self as Manager. Do you know how I can set my self Manager or delete the Board?
OVERLORD added the bug label 2026-02-04 18:05:41 +03:00
Author
Owner

@meltyshev commented on GitHub (Nov 20, 2022):

Hi!

I'll mark it as a bug, because I didn't even think of such a case.
The only way to fix this is to open the Planka console and add a new manager.

If you are using Docker, you need to connect the container (planka-planka-1 is its name):

docker exec -ti planka-planka-1 /bin/bash

Enter the console:

npx sails console --port 1338

Add a new manager to the project:

(async () => { const user = await sails.helpers.users.getOne({ email: 'YOUR_EMAIL_ADDRESS_HERE'}); const projects = await sails.helpers.projects.getMany({ name: 'PROJECT_NAME_HERE' }); await sails.helpers.projectManagers.createOne(user, projects[0]); })();

Exit the console:

.exit

If you are using Docker, exit the container:

exit
@meltyshev commented on GitHub (Nov 20, 2022): Hi! I'll mark it as a bug, because I didn't even think of such a case. The only way to fix this is to open the Planka console and add a new manager. If you are using Docker, you need to connect the container (`planka-planka-1` is its name): ``` docker exec -ti planka-planka-1 /bin/bash ``` Enter the console: ``` npx sails console --port 1338 ``` Add a new manager to the project: ``` (async () => { const user = await sails.helpers.users.getOne({ email: 'YOUR_EMAIL_ADDRESS_HERE'}); const projects = await sails.helpers.projects.getMany({ name: 'PROJECT_NAME_HERE' }); await sails.helpers.projectManagers.createOne(user, projects[0]); })(); ``` Exit the console: ``` .exit ``` If you are using Docker, exit the container: ``` exit ```
Author
Owner

@Dev0Louis commented on GitHub (Nov 20, 2022):

This solved the Issue thank you ^^

@Dev0Louis commented on GitHub (Nov 20, 2022): This solved the Issue thank you ^^
Author
Owner

@Dev0Louis commented on GitHub (Nov 20, 2022):

But would be nice, if there would be a "lock" so you cant make Projects without Managers?
Or that Admins can set them self as Managers?

@Dev0Louis commented on GitHub (Nov 20, 2022): But would be nice, if there would be a "lock" so you cant make Projects without Managers? Or that Admins can set them self as Managers?
Author
Owner

@meltyshev commented on GitHub (Nov 20, 2022):

I agree, we should think about the best way to do this.

@meltyshev commented on GitHub (Nov 20, 2022): I agree, we should think about the best way to do this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#249