Права групп участников/coop2

```
$wgGroupPermissions['\*']['edit'] = false;
$wgGroupPermissions['\*']['createpage'] = false;
$wgGroupPermissions['\*']['createtalk'] = false;
$wgGroupPermissions['\*']['writeapi'] = false;

$wgGroupPermissions['user']['move'] = false;
$wgGroupPermissions['user']['move-subpages'] = false;
$wgGroupPermissions['user']['move-rootuserpages'] = false;
$wgGroupPermissions['user']['move-categorypages'] = false;
$wgGroupPermissions['user']['movefile'] = false;
$wgGroupPermissions['user']['edit'] = false;
$wgGroupPermissions['user']['createpage'] = false;
$wgGroupPermissions['user']['createtalk'] = false;
$wgGroupPermissions['user']['writeapi'] = false;
$wgGroupPermissions['user']['upload'] = false;
$wgGroupPermissions['user']['reupload'] = false;
$wgGroupPermissions['user']['reupload-shared'] = false;
$wgGroupPermissions['user']['minoredit'] = false;
$wgGroupPermissions['user']['editmyusercss'] = false;
$wgGroupPermissions['user']['editmyuserjson'] = false;
$wgGroupPermissions['user']['editmyuserjs'] = false;
$wgGroupPermissions['user']['purge'] = false;
$wgGroupPermissions['user']['applychangetags'] = false;
$wgGroupPermissions['user']['changetags'] = false;
$wgGroupPermissions['user']['editcontentmodel'] = false;

$wgGroupPermissions['somegroupname']['edit'] = true;

$wgGroupPermissions['approved']['edit'] = true;
$wgGroupPermissions['approved']['createpage'] = true;
$wgGroupPermissions['approved']['createtalk'] = true;
$wgGroupPermissions['approved']['upload'] = true;
$wgGroupPermissions['approved']['minoredit'] = true;
$wgGroupPermissions['approved']['autoconfirmed'] = true;
$wgGroupPermissions['approved']['editsemiprotected'] = true;
$wgGroupPermissions['approved']['purge'] = true;

$wgGroupPermissions['community'] = $wgGroupPermissions['approved'];
$wgGroupPermissions['community']['move'] = true;
$wgGroupPermissions['community']['move-subpages'] = true;
$wgGroupPermissions['community']['move-rootuserpages'] = true;
$wgGroupPermissions['community']['move-categorypages'] = true;
$wgGroupPermissions['community']['writeapi'] = true;
$wgGroupPermissions['community']['rollback'] = true;
$wgGroupPermissions['community']['reupload'] = true;
$wgGroupPermissions['community']['reupload-own'] = true;
$wgGroupPermissions['community']['reupload-shared'] = true;
$wgGroupPermissions['community']['editmyusercss'] = true;
$wgGroupPermissions['community']['editmyuserjson'] = true;
$wgGroupPermissions['community']['editmyuserjs'] = true;
$wgGroupPermissions['community']['noratelimit'] = true;
$wgGroupPermissions['community']['movefile'] = true;
$wgGroupPermissions['community']['suppressredirect'] = true;
$wgGroupPermissions['community']['upload\_by\_url'] = true;
$wgGroupPermissions['community']['applychangetags'] = true;
$wgGroupPermissions['community']['changetags'] = true;
$wgGroupPermissions['community']['editcontentmodel'] = true;

$wgGroupPermissions['affiliate'] = $wgGroupPermissions['community'];
$wgGroupPermissions['affiliate']['delete'] = true;
$wgGroupPermissions['affiliate']['deletedhistory'] = true;
$wgGroupPermissions['affiliate']['deletedtext'] = true;
$wgGroupPermissions['affiliate']['undelete'] = true;
$wgGroupPermissions['affiliate']['protect'] = true;
$wgGroupPermissions['affiliate']['affiliate'] = true; // protection level
$wgGroupPermissions['affiliate']['browsearchive'] = true;

$wgGroupPermissions['regional'] = $wgGroupPermissions['affiliate'];

$wgGroupPermissions['staff'] = $wgGroupPermissions['regional'];

$wgGroupPermissions['sysop']['edit'] = true;
$wgGroupPermissions['sysop']['createpage'] = true;
$wgGroupPermissions['sysop']['createtalk'] = true;
$wgGroupPermissions['sysop']['writeapi'] = true;
$wgGroupPermissions['sysop']['reupload-own'] = true;
$wgGroupPermissions['sysop']['minoredit'] = true;
$wgGroupPermissions['sysop']['editsitecss'] = true;
$wgGroupPermissions['sysop']['editsitejson'] = true;
$wgGroupPermissions['sysop']['editsitejs'] = true;
$wgGroupPermissions['sysop']['editusercss'] = true;
$wgGroupPermissions['sysop']['edituserjson'] = true;
$wgGroupPermissions['sysop']['edituserjs'] = true;
$wgGroupPermissions['sysop']['editmyusercss'] = true;
$wgGroupPermissions['sysop']['editmyuserjson'] = true;
$wgGroupPermissions['sysop']['editmyuserjs'] = true;
$wgGroupPermissions['sysop']['affiliate'] = true; // protection level
$wgGroupPermissions['sysop']['purge'] = true;
$wgGroupPermissions['sysop']['upload\_by\_url'] = true;
$wgGroupPermissions['sysop']['applychangetags'] = true;
$wgGroupPermissions['sysop']['changetags'] = true;
$wgGroupPermissions['sysop']['editcontentmodel'] = true;

$wgGroupPermissions['bureaucrat'] = $wgGroupPermissions['sysop'];
$wgGroupPermissions['bureaucrat']['userrights'] = true;
$wgGroupPermissions['bureaucrat']['deletelogentry'] = true;
$wgGroupPermissions['bureaucrat']['deleterevision'] = true;
$wgGroupPermissions['bureaucrat']['hideuser'] = true;
$wgGroupPermissions['bureaucrat']['suppressrevision'] = true;
$wgGroupPermissions['bureaucrat']['viewsuppressed'] = true;
$wgGroupPermissions['bureaucrat']['suppressionlog'] = true;
$wgGroupPermissions['bureaucrat']['bureaucrat'] = true; // protection level

$wgRestrictionLevels = [ '', 'autoconfirmed', 'affiliate', 'sysop', 'bureaucrat' ];
$wgCascadingRestrictionLevels = [ 'affiliate', 'sysop', 'bureaucrat' ];

```