mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Allow reusing permissions edit controls.
This commit is contained in:
@@ -356,6 +356,10 @@ bool ChannelData::canEditInformation() const {
|
||||
return !amRestricted(Restriction::f_change_info);
|
||||
}
|
||||
|
||||
bool ChannelData::canEditPermissions() const {
|
||||
return (hasAdminRights() || amCreator());
|
||||
}
|
||||
|
||||
bool ChannelData::canEditSignatures() const {
|
||||
return canEditInformation();
|
||||
}
|
||||
|
Reference in New Issue
Block a user