Add moderating roles to GroupType for comment delete. bug809625
This change was added to limit deleting of comments in standard groups
views to admins only, and admins and tutors in course groups. This commit
adds the functions User::can_moderate_view()
and GroupType::get_view_moderating_roles()
to implement this functionality.
Change-Id: Ifb8f4fc55d31fd7c5928c73c3d81710934bfdad8
Signed-off-by: Edward Murrell <email address hidden>
Reviewed: https:/ /reviews. mahara. org/444 gitorious. org/mahara/ mahara/ commit/ fa63d1b8e52fb73 079d3bd54eecd71 535a8d4941
Committed: http://
Submitter: Francois Marier (<email address hidden>)
Branch: master
commit fa63d1b8e52fb73 079d3bd54eecd71 535a8d4941
Author: Edward Murrell <email address hidden>
Date: Tue Jul 5 15:10:25 2011 +1200
Add moderating roles to GroupType for comment delete. bug809625
This change was added to limit deleting of comments in standard groups
User:: can_moderate_ view()
GroupType: :get_view_ moderating_ roles()
views to admins only, and admins and tutors in course groups. This commit
adds the functions
and
to implement this functionality.
Change-Id: Ifb8f4fc55d31fd 7c5928c73c3d817 10934bfdad8
Signed-off-by: Edward Murrell <email address hidden>