mirror of https://github.com/procxx/kepka.git
Hide remove member button for supegroup admins.
This commit is contained in:
parent
2569df9e5a
commit
7f66e0fdfe
|
@ -611,8 +611,10 @@ void ParticipantsBoxController::rowActionClicked(not_null<PeerListRow*> row) {
|
||||||
|
|
||||||
bool ParticipantsBoxController::canEditAdminByRights(
|
bool ParticipantsBoxController::canEditAdminByRights(
|
||||||
not_null<UserData*> user) const {
|
not_null<UserData*> user) const {
|
||||||
if (_additional.adminCanEdit.find(user) != _additional.adminCanEdit.cend()) {
|
if (_additional.adminRights.find(user)
|
||||||
return true;
|
!= _additional.adminRights.cend()) {
|
||||||
|
return (_additional.adminCanEdit.find(user)
|
||||||
|
!= _additional.adminCanEdit.cend());
|
||||||
}
|
}
|
||||||
return (user != _additional.creator);
|
return (user != _additional.creator);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue