Disabling delete functionality?

Disabling delete functionality?

by Simon Theuma -
Number of replies: 1

Hi There,

I would like teachers to be able to add content to topics, but not have the ability to delete said content.  Is this possible? If so, can you please point me in the right direction? smile

 

Thanks,

Simon.

Average of ratings: -
In reply to Simon Theuma

Re: Disabling delete functionality?

by Alejo Becerra Diaz -

Hello, Simon.

I'm afraid it is not possible using capabilities. Adding, removing and editing are all controlled by one unique capability (see capability 34 in http://docs.moodle.org/dev/Roles#Core-level_Capabilities; they didn't thought it was necessary to split (you may disagree, of course smile)

I think it shouldn't be hard to edit the code to remove the delete icon, it this is enough for you (it would about involuntary and non-too-savvy-users voluntary deletions). I'll try to research when time permits. If anyone can give more info about this, it would be welcome.

Greetings.