Read only Site

Read only Site

by Anze Pratnemer -
Number of replies: 2

Greetings,


I've tried following this thread: https://moodle.org/mod/forum/discuss.php?d=185443 but there is some confusion within sql query last poster uses and it doesnt work for me.

He sets permission to -1000 for view permissions, and leaves other permissions as they are. I tried setting -1000 to every OTHER permission apart from those listed and it still doesnt work. Im on 3.5 Moodle, trying to archive it to move to 3.7 ASAP.

Is there any other way to make site read only as archive?

Average of ratings: -
In reply to Anze Pratnemer

Re: Read only Site

by Howard Miller -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
Personally, I would restrict the role capabilities to disallow users from changing stuff, making posts etc.
Average of ratings: Useful (1)
In reply to Anze Pratnemer

Re: Read only Site

by Andrew Lyons -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers
A new experimental feature was introduced in Moodle 3.6 for context freezing. When enabled this removes all write capability for all users (including admin).
However, you cannot apply this at the site level. Technically you may be able to in the backend, but you cannot in the UI.

In terms of your query for 3.5, you can do the same thing as you suggest, but you ned to do it for all write permissions, not read permissions.

Note: This will have some weird consequencs - students will not be able to view their assignment submissions for example. This is the reason that the feature is experimental.

Andrew