mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
BUGFIX Disallow addition of members to groups with MemberTableField->addtogroup() when the editing member doesn't have permissions on the added member (from r110859)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112797 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
ad5a8e0fce
commit
185e30a750
@ -177,6 +177,8 @@ class MemberTableField extends ComplexTableField {
|
||||
$className,
|
||||
sprintf('"%s" = \'%s\'', $identifierField, $data[$identifierField])
|
||||
);
|
||||
|
||||
if($record && !$record->canEdit()) return $this->httpError('401');
|
||||
}
|
||||
|
||||
// Fall back to creating a new record
|
||||
|
Loading…
Reference in New Issue
Block a user