Project

General

Profile

Redmine.pm with support for public projects and platform authentication

Added by Thilo Paul-Stueve about 13 years ago

The Redmine.pm from trunk is unable to deal with situations like users trying to access a repository of a public project when authentication to access the platform is required.

The main problem is, that Redmine.pm from trunk is based on a DB query that joins in project membership; it hence will fail to authenticate platform users not in the project of the repository they try to access. Attached you find a modified version of the Redmine.pm that grants access to repository data as shown in the table:

User Platfom Authentication Required No Platfom Authentication Required
Private Project \
Read Write Read Write
anonymous
non-member
reviewer
developer
manager
Public Project
Read Write Read Write
anonymous
non-member
reviewer
developer
manager

It requires a little more DB queries per access, but should work as expected. If you have further ideas for improvement let me know.

Thilo

PS Use it on your own risk; it comes without any guarantee. ;)

Redmine.pm (12.1 KB) Redmine.pm Modified Redmine.pm