Self activity

Self activity

by D T -
Number of replies: 7
Hi,

I want to create a role, in which user will be able to edit only his activity not other. Please suggest what permission do i need to select for that role.

Thanks in advance.

Average of ratings: -
In reply to D T

Re: Self activity

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
This could be what the default "student" role does. Have you explored the "student" role, and if so, tell us what problems you have encountered?
In reply to Rick Jerz

Re: Self activity

by D T -
I understand student can not add an activity. However, i want to create a role  which will have permission to add/edit activities. New role's user will be able to edit only his own activities. Please suggest.

Thanks 
In reply to D T

Re: Self activity

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
Now I better understand. Essentially, you want a "teacher" role, however, you want teachers only to be able to edit their own work. Interesting question. I am not sure why, but you have your reasons. Also, I can't think of any solution except to explore "roles" setting. Perhaps someone else will know.
In reply to Rick Jerz

Re: Self activity

by Philipp Memmel -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
I am pretty confident, that this is not possible. Creating or editing abilities is only being controlled by the capability moodle/course:manageactivities. A role has this capability in course context or not and thus can edit activities or not.

The data which user added an activity is not even recorded somewhere AFAIK (except logs), so it would be very tricky and/or would require a big development effort including deeper changes to the Moodle core code to realize such a feature.
In reply to D T

Re: Self activity

by AL Rachels -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Based on what I know and what these other users have mentioned, I think the only way you can achieve something close to what you want, would be to give each of your users their own course with the role of teacher in it.
Average of ratings:Useful (1)
In reply to AL Rachels

Re: Self activity

by D T -
Thanks everyone for your time and support. I will try and check.
In reply to D T

Re: Self activity

by D T -
I think, user Role "Manager" without facility of editing/deleting records of other users will do the job. Please how can i configure same with Moodle. This is new role should be able to add/edit only his own records. Thanks.