-
Notifications
You must be signed in to change notification settings - Fork 288
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
Project creation auth for user without Admin rights Fixes #6187 #6593
base: master
Are you sure you want to change the base?
Project creation auth for user without Admin rights Fixes #6187 #6593
Conversation
It seems to be a very good job 👍 Small bug: the "My projects" link, when clicking on my avatar (on a non-admin user) isn't displayed when being on a project's page (https://exemple.org/projects/project_name/). I didn't verified that it's displayed on all other places you can go. |
Thank you Ididry! I couldn't reproduce this bug. You are logged as non-admin user (who has the right to create project?) and you go to some project page (is it a project created by this user or by another user?). You click on the right top menu and the "My projects" link is not displayed. Is it displayed anywhere else? Thanks again :) |
How to reproduce on my test installation:
|
I think I understand the problem. It already exists a permission called add_project in the database which is specific to the folder pootle_project. The permission I added has to be in the root directory as it is a permission global to the whole site, just as administrate or review (other permissions visible in the permissions admin panel). I see three ways of getting out of this:
I would probably try the first possibility but maybe it is not the best one. Any pootle expert advice? By the way, I will probably add another small commit for the Travis checks. I hope it doesn't disturb the pull request. |
hi @giliam i havent had chance to check out the PR properly yet. We are just about to get a stable release (finally!) - hopefully this should be out in the next week. Once thats done I would be up for assisting with landing this and addressing any issues that come up re permissions etc. From an architectural point of view, the problem i see is that for each project it currently creates a directory in the language directories, so we need to work out the best way to structure personal projects, and how we can integrate that to pootle's namespace. |
…ect". This will avoid conflicts with existing permission "add_project" automatically added by Django with Project model.
This tag is using root directory.
Hi @phlax! |
@phlax Any news? |
Hello!
A new feature so that a user with a new special perms who isn’t site administrator can create a project and edit it (issue #6187)
I changed the API to use the administration page for projects. Now the project list either display all projects for Administrator users or only administrated projects for normal users.
I am new to pootle so I guess this code review will take some time.
Thank you in advance for your help and comments!
Gilïam
P.S.: Sorry, I didn't have a lot of time these last weeks.