Changing Project Documentation Upload Permission

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
ankur
Posts: 3
Joined: 28 Jan 2010, 09:44

Changing Project Documentation Upload Permission

Post by ankur »

Hello All,

Recently I came across a situation where the developer added to a project wanted to upload a document. As per the default mantis permission ( Manage Configuration -> Permission Report ) the Manager and Admin can upload the doc. I looked in the workflow threshold/transitions but couldn't find the option to control the upload of project documentation. Finally I looked into the config_defaults.php and found a value $g_upload_project_file_threshold which I changed to DEVELOPER. This solved the case for upload but on a global level. I wanted it on Project level. Also the developer wished to upload modified doc instead of actual one for which he wanted to delete this version. But he wasn't able to do so.

How can it be achieved on a project level ( and not global level ). I am using mantis 1.1.1

-Thanks
AJ
atrol
Site Admin
Posts: 8580
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Changing Project Documentation Upload Permission

Post by atrol »

I didn't check myself whether this is working, but try using the configuration page instead of changing config_defaults.php (Manage -> Manage Configuration -> Configuration Report)
Set upload_project_file_threshold to value 55 for the projects you want, select "All users"
Please use Search before posting and read the Manual
ankur
Posts: 3
Joined: 28 Jan 2010, 09:44

Re: Changing Project Documentation Upload Permission

Post by ankur »

Hi atrol,

Thanks, this solves one problem of letting the users to upload the docs.
I have some Some more doubts :
1> Is there any such option where in they can even delete the doc for the project they are assigned in.
2> Can we group users for a project in a group and then create the config option for that particular group instead of all users as I did now. Currently what I can do is create the same rule for each user whom I want to give the permission instead of all the users for a project.

Thanks again for prompt reply.
-AJ
atrol
Site Admin
Posts: 8580
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Changing Project Documentation Upload Permission

Post by atrol »

ankur wrote: 1> Is there any such option where in they can even delete the doc for the project they are assigned in.
AFAIK no
ankur wrote: 2> Can we group users for a project in a group and then create the config option for that particular group instead of all users as I did now. Currently what I can do is create the same rule for each user whom I want to give the permission instead of all the users for a project.
Not that way,
the concept is to have the roles (groups) viewer, reporter, updater, developer, manager, administrator for a project and to assign the roles to users.
Please use Search before posting and read the Manual
ankur
Posts: 3
Joined: 28 Jan 2010, 09:44

Re: Changing Project Documentation Upload Permission

Post by ankur »

Thanks atrol ... will revert back if i find any problem .....

Regards
AJ
Post Reply