Commit e33d4d1c authored by Evan Goldenberg's avatar Evan Goldenberg
Browse files

don't show suspend/unsuspend functionality to institution admins, since


they can't use it (thanks, Ruslan Kabalin) (bug #525778)
Signed-off-by: default avatarEvan Goldenberg <evang@catalyst.net.nz>
parent 66043c8b
......@@ -223,7 +223,7 @@ if ($institution || $add) {
'help' => true,
),
);
if ($institution != 'mahara') {
if ($USER->get('admin') && $institution != 'mahara') {
$elements['expiry'] = array(
'type' => 'date',
'title' => get_string('institutionexpiry', 'admin'),
......@@ -525,7 +525,7 @@ function institution_cancel_submit() {
redirect('/admin/users/institutions.php');
}
if ($institution && $institution != 'mahara') {
if ($USER->get('admin') && $institution && $institution != 'mahara') {
function institution_suspend_submit(Pieform $form, $values) {
global $SESSION, $USER;
if (!$USER->get('admin')) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment