mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
MDL-11511, revert the changes, see tracker
This commit is contained in:
parent
73b36bca84
commit
046dd7dcf6
5 changed files with 7 additions and 58 deletions
|
@ -81,14 +81,8 @@
|
|||
}
|
||||
|
||||
if ($rid) { // So do you have access?
|
||||
if (!confirm_sesskey()) {
|
||||
print_error('confirmsesskeybad', 'error');
|
||||
}
|
||||
|
||||
if (data_isowner($rid)){
|
||||
require_capability('mod/data:editownentries', $context);
|
||||
}else{
|
||||
require_capability('mod/data:manageentries', $context);
|
||||
if (!(has_capability('mod/data:manageentries', $context) or data_isowner($rid)) or !confirm_sesskey() ) {
|
||||
print_error('noaccess','data');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue