2
0
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:
John Preston
2019-01-07 16:55:49 +04:00
parent 61419b57c8
commit f4d52b82b4
21 changed files with 1027 additions and 713 deletions

View File

@@ -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();
}