|User Access: $wgGroupPermissions|
|Use this to set access rights for groups and users in these groups.
|이 변수가 소개된 버전:||1.5.0 (r9367)|
|이 변수가 사라진 버전:||계속해서 쓰이고 있음|
|허용값:||(Complex array of boolean values.)|
|기타 설정: 알파벳 순 | 기능별 순|
Those permissions, which are granted with $wgGroupPermissions, are always cumulative. If a user is member of different groups, then the user will get a right if it is granted to at least one of these groups even if it is not granted to their other groups. In other words, If one of the user's groups has a right, then it is not possible to take the right away using $wgGroupPermissions. Instead use $wgRevokePermissions to revoke permissions.
$wgGroupPermissions['user']['edit'] = true;
This gives all registered users the ability to edit pages.
사용자 지정 사용자 그룹
You can also define your own user groups. User group names can be no longer than 255 characters. The groups, which have been defined either in DefaultSettings.php or in LocalSettings.php, can be assigned to users through the wiki Special:Userrights interface.
# Start with assigning the default permissions from group "autoconfirmed" $wgGroupPermissions['trustworthy'] = $wgGroupPermissions['autoconfirmed']; # Add the permissions from group "bot" $wgGroupPermissions['trustworthy'] = array_merge( $wgGroupPermissions['trustworthy'], $wgGroupPermissions['bot'] ); # Now modify these rights: $wgGroupPermissions['trustworthy']['delete'] = true; $wgGroupPermissions['trustworthy']['protect'] = true; $wgGroupPermissions['trustworthy']['patrol'] = true;
This creates a group called "trustworthy".
Now add human readable names for your newly created group to the wiki for the "trustworthy" group, e.g. on page "MediaWiki:Group-trustworthy" in plural "Trustworthy editors" and on page "MediaWiki:Group-trustworthy-member" in singular "Trustworthy editor". This is an optional but recommended step.
Users of that group have the same permissions as users from the groups "autoconfirmed" and "bot". Additionally, they will be able to delete and protect pages, and to patrol edits.
For in-depth documentation, see 매뉴얼:유저 권한.
|경고:||Functionality to make specific pages inaccessible has not been extensively tested for security. Use at your own risk!|
- See length of column ug_group in the user_groups table.