https://sourceforge.net/apps/trac/sourceforge/ticket/17513
Hello,
I have a project called u/f-javier, I don't created it and I don´t know what is it.
The web of the project shows a 403 error message: Read access required.
I can't enter in project settings.
The project must be deleted, Can you help me?
Thanks, f-javier.
User https://sourceforge.net/u/ofthelit/profile/ is also affected.
Something weird going on with these permissions?
https://sourceforge.net/u/apotheon/profile/ is affected too.
You should not be able to remove the last project admin.
You should not be able to remove permissions from the admin group.
Admin group should always be able to do everything. In this case, admin should still be able to 'read' even though the 'read' perm group is empty.
Originally by: apotheon
Diff:
Fixed https://sourceforge.net/u/apotheon/profile/
forge:tv/1973
This was a two-part change:
1. Prevent user from removing all Admins on a project.
2. Implicitly give project Admins all other permissions on the project, its apps, and subprojects.
Functional tests are included for both changes.
To test #1:
Go to /p/test/admin/groups and try to remove all users from the Admin group. You should get a flash message stating that you must have at least one Admin.
To test #2:
Make sure you are logged in as a user that is a project admin but not a nbhd admin. Go to /p/test/admin/tools and open the permissions for an installed tool. Remove permissions that would affect an Admin, then make sure you can still perform the actions guarded by those permissions.
For example, remove anonymous from the Read permission on the Wiki tool. On current dev, this will prevent a project Admin from reading the Wiki, b/c anonymous is a subrole of Admin, and unless you give Admin the Read permission back explicitly, Admin won't have Read. On tv/1973, Admin should implicitly still have Read on the Wiki after you remove *anonymous.
Try this on a user project also, and with other tools and permissions.
Tested fine here, merged to dev.