Permalink
Browse files

Update according to capability change in "data_atmaxentries" function

  • Loading branch information...
1 parent a3f2fa6 commit 8fa7806c77c22673bfa1b815b80717b8793aee19 @andreabix andreabix committed Sep 16, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/data/edit.php
View
@@ -290,7 +290,7 @@
if ($rid) {
echo '&nbsp;<input type="submit" name="cancel" value="'.get_string('cancel').'" onclick="javascript:history.go(-1)" />';
} else {
- if ( (has_capability('mod/data:manageentries',$context)) || (!$data->maxentries) || (data_numentries($data)<($data->maxentries-1)) ) {
+ if ( (!$data->maxentries) || (data_numentries($data)<($data->maxentries-1)) ) {
echo '&nbsp;<input type="submit" value="'.get_string('saveandadd','data').'" />';
}
}

0 comments on commit 8fa7806

Please sign in to comment.