seek
seek copied to clipboard
Template creation if non-administrator
A User cannot create templates unless he administers at least 1 project. Any user should be able to create a template, regardless if the user is administrating anything.
@floradanna I found the cause of this behavior. But it explicitly says you need to be instance admin or a project admin. https://github.com/seek4science/seek/blob/5cffb9a536f15cd631900353c53c7c78b53c93fe/app/models/template.rb#L28 Do you want me to revert that?
I am checking old notes before I can answer. @NielsGeudens what do you think. What I can say is that if only admin can create template, they must be admin of that specific project (not admin of any project). So, in case, project admin can create templates only for the projects they administer.
@floradanna, @NielsGeudens So to conclude our conversation, the default behavior would be (for now) that you do need to be at least administrator of one project to create a template, but you can only make project specific templates in projects you administer and not all projects you are member of.
Examples:
- User A administers project X and is simply a member of projects Y and Z. User A can only create project specific templates for project X and not Y or Z.
- User B is member of projects X, Y and Z but doesn't administer any of them. User B will be denied to create any template.
Is this the desired behavior?