Forbidden editing groups from profile page, for operators without administrative permissions.

This commit is contained in:
Dmitriy Simushev 2012-02-18 19:58:46 +00:00
parent fca74ed824
commit 4f16162665

View File

@ -44,8 +44,7 @@ $page['groups'] = get_all_groups($link);
close_connection($link);
$errors = array();
$canmodify = ($opId == $operator['operatorid'] && is_capable($can_modifyprofile, $operator))
|| is_capable($can_administrate, $operator);
$canmodify = is_capable($can_administrate, $operator);
$op = operator_by_id($opId);