How to prevent students deleting any entries

How to prevent students deleting any entries

by David Dunn -
Number of replies: 4

Mdl 3.0


We want to prevent students from deleting any entries from the database activity. The default settings allow students to delete their own entries, but not those of other students. I changed the Student Permission mod/data:manageentries to Prevent, but it has not changed the behavior.


Any suggestions?



Average of ratings: -
In reply to David Dunn

Re: How to prevent students deleting any entries

by William Lu -
Picture of Particularly helpful Moodlers

Hi David,

The student role can NOT delete other users' entry, this comes as default. If you encountered a strange behaviour, please double check 1. Site level role setting, 2. Category level role override and 3. course level role override

There is No setting/role override to stop a user to delete their own entry.

The setting: mod/data:manage entries can be used to stop a Teacher to delete an entry, or to allow students to delete others' entry.


If you don't want any one to delete any entry, neither their own nor others, simply remove the tag ##delete## from both Single template and List template. When you do want to delete an entry, you can quickly add the ##delete## tag back for a short period during a quiet time. You can also temporarly hide this activity until you  have finished your clean up task.


Average of ratings: Useful (1)
In reply to William Lu

Re: How to prevent students deleting any entries

by David Dunn -

Clear. I'll suggest your workaround, William. Thanks!

In reply to David Dunn

Re: How to prevent students deleting any entries

by royce roy -
In reply to royce roy

Re: How to prevent students deleting any entries

by William Lu -
Picture of Particularly helpful Moodlers

Hi Royce,

Are you sure you are in the right forum? This thread is about Moodle database activity, not Moodle database. The two links in your post are irrelevant.