How to make project read-only?
Moderators: Developer, Contributor
How to make project read-only?
I need to switch a number of projects to "read-only".
[MantisBT 2.25.2 Schema 211]
Within those projects, nobody (even an admin) should be allowed to report a new issue or modify an existing issue in any way. Google has found that this question has been asked a number of times over the past 15 years, but there never seemed to be an good answer. One suggestion (from 10-12 years ago) was to add several dozen of lines of PHP to a config file, but the response to that was that it didn't work. I do want to preserve existing "view" privileges for users assigned to these "read-only" projects.
What is the recommended way to make a project read-only?
I've searched the admin guide and Wiki, and was unable to find anything relevant.
[MantisBT 2.25.2 Schema 211]
Within those projects, nobody (even an admin) should be allowed to report a new issue or modify an existing issue in any way. Google has found that this question has been asked a number of times over the past 15 years, but there never seemed to be an good answer. One suggestion (from 10-12 years ago) was to add several dozen of lines of PHP to a config file, but the response to that was that it didn't work. I do want to preserve existing "view" privileges for users assigned to these "read-only" projects.
What is the recommended way to make a project read-only?
I've searched the admin guide and Wiki, and was unable to find anything relevant.
Re: How to make project read-only?
Select the project in project selection
Goto page Manage > Configuration > Workflow Tresholds
Uncheck all check boxes in rows "Report an issue" and "Update an issue"
Click "Update Configuration" on bottom of the page.
Goto page Manage > Configuration > Workflow Tresholds
Uncheck all check boxes in rows "Report an issue" and "Update an issue"
Click "Update Configuration" on bottom of the page.
Re: How to make project read-only?
That doesn't seem to work.
I did that (as admin).
Then I logged back in as a normal user and was able to add a note, change who the issue was assigned to, change the issue status, edit an old note, delete an attachment, etc.
I was unable to create a new issue, so I guess it partially worked.
Re: How to make project read-only?
Right, that's not enough, as this just disables updating issue summary and description.
You have to disable a lot more check boxes in sections "Issues", "Notes", "Tags" and "Attachments".
You have to disable a lot more check boxes in sections "Issues", "Notes", "Tags" and "Attachments".
Re: How to make project read-only?
I was afraid of that. :/
I need to do this for dozens of projects, so it looks like I'm going to spend an afternoon clicking on checkboxes.
Or is there a way to copy the thresholds from one project to another?
Do sub-projects inherit their parent's thresholds?
It sure would be nice if there was a "read-only" toggle in a project's configuration...
Re: How to make project read-only?
If you have less read-only projects than read-write project, you coould change the settings to read-only for "ALL PROJECTS" and enable read-write for the fewer remaining ones.
The settings are finally stored in database table mantis_config_table.
You could set one project in UI the way you want and copy the settings to other projects.
The settings are finally stored in database table mantis_config_table.
You could set one project in UI the way you want and copy the settings to other projects.
Re: How to make project read-only?
Yes, I was thinking about that. I've been trying to figure out if/how configuration info is inherited by projects and sub-projects. The only mention in the admin guide that I can find of sub-projects inheriting anything is about versions and categories.
It would probably take me longer to figure out the right SQL commands to do that than it would to just click a couple hundred checkboxes.The settings are finally stored in database table mantis_config_table.
You could set one project in UI the way you want and copy the settings to other projects.
Re: How to make project read-only?
I also tried setting the threshold where an issue becomes read-only to "new". That didn't really seem to do anything either. I could still modify issues whith state > new in all sorts of ways. What does it actually mean for an issue to be "read-only"? It seems like all of the changes I've tried to make on "read-only" issues have worked (add/delete notes, delete attachments, change status/assignment, etc.).
Re: How to make project read-only?
So there are a dozen or two ways to change/modify an issue, but the only thing that's included in "updating an issue" is changing the summary or description?
Re: How to make project read-only?
No, you cannot change some more fields, e.g. Category, View Status, Priority, Severity, Reproducibility and Resolution.