Manual:User rights/id

Hak pengguna adalah hak akses dan kemampuan spesifik yang dapat diberikan pada kelompok tertentu. Kelompok dapat diberikan pada (atau dicabut dari) seorang pengguna melalui antarmuka Special:Userrights pada perangkat lunak wiki. Lihat.

Akses ke bagian ini diatur oleh hak 'userrights', sehingga hanya pengguna dengan kelompok 'birokrat' dapat melakukannya (pada pengaturan bawaan) Lihat untuk informasi lebih lanjut tentang mengelola dan pemberian kelompok pengguna.

Mengganti hak kelompok
Instalasi MediaWiki bawaan menetapkan hak tertentu untuk kelompok bawaan (lihat di bawah). Kamu dapat mengganti hak bawaan dengan merubah larik $GroupPermission pada dengan sintax yang telah di tentukan.

Jika member memiliki beberapa kelompok, mereka akan mendapatkan seluruh izin pada setiap kelompok dimana mereka berada. Semua pengguna, termasuk pengguna anonim, berada dalam kelompok ; semua pengguna terdaftar berada dalam kelompok Sebagai tambahan untuk kelompok bawaan, kamu dapat membuat kelompok baru menggunakan larik yang sama.

Contoh
Contoh beriku akan menonaktifkan izin melihat untuk setiap halaman jika tidak terdapat dalam, lalu hanya mengaktifkan ulang pengguna terdaftar:

Contoh berikut akan menonaktifkan perubahan pada seluruh halaman, lalu diaktifkan kembali hanya untuk pengguna dengan alamat surel yang telah di konfirmasi.

Membuat group baru dan menetapakan izin untuknya
You can create new user groups by defining permissions for the according group name in  where  is the actual name of the group.

Additionally to assigning permissions, you should create these three wiki pages with fitting content:


 * (content: )
 * (content: )
 * (content: )

By default, bureaucrats can add users to, or remove them from, any group. However, if you are using and, you may need to customize those instead.

Contoh
This example will create an arbitrary “ninja” group that can block users and delete pages, and whose edits are hidden by default in the recent changes log:


 * Note: the group name cannot contain spaces, so use  or   instead of

In this example, you would probably also want to create these pages:


 * (content: )
 * (content: )
 * (content: )

This will ensure that the group will be referred to as “Ninjas” throughout the interface, and a member will be referred to as a “ninja”, and overviews will link the group name to.

This example disables write access (page editing and creation) by default, creates a group named “Write”, and grants it write access. Users can be manually added to this group via Special:UserRights:

In this example, you would probably also want to create these pages:


 * (content: )
 * (content: )
 * (content: )

Removing predefined groups
MediaWiki out of the box comes with a number of predefined groups. Most of these groups can be removed by unsetting the according array keys, among them. Untuk keterangan lebih lanjut, lihat di bawah.

Contoh
Contoh ini akan menghapus group birokrat. It is necessary to ensure that all six of these variables are unset for any group that one wishes to remove from being listed at Special:ListGroupRights; however, merely unsetting $wgGroupPermissions will suffice to remove it from Special:UserRights. This code should be placed after any  lines that add extensions such as  containing code that gives bureaucrats group permissions by default.

In some extensions (Flow, Semantic MediaWiki, etc.), rights are added during extension registration or in a registration function. In this case, it could be necessary to use a registration function in LocalSettings.php to remove some predefined user groups:

Note on the group called “user”
With the above mechanism, you can remove the groups sysop, bureaucrat and bot, which - if used - can be assigned through the usual user permission system. However, it is currently impossible to remove the  group. This group is not assigned through the usual permission system. Instead, every logged in user automatically is member of that group. This is hardcoded in MediaWiki and currently cannot be changed easily.

Daftar hak
Hak berikut tersedia dalam versi mutakhir dari MediaWiki Jika anda menggunakan versi lebih tua, lihat pada "Special:Version" pada wiki anda dan perhatikan jika versio tersebut terdapat pada kolom "versi"

Daftar kelompok
The following groups are available in the latest version of MediaWiki. If you are using an older version then some of these may not be implemented.

From MW 1.12, you can create your own groups into which users are automatically promoted (as with autoconfirmed and emailconfirmed) using. You can even create any custom group by just assigning rights to them.

Hak bawaan
The default rights are defined in.
 * Default values in HEAD version: https://phabricator.wikimedia.org/diffusion/MW/browse/master/includes/DefaultSettings.php
 * The default values in the latest stable MediaWiki release, version, are available here: https://phabricator.wikimedia.org/diffusion/MW/browse//includes/DefaultSettings.php
 * Additional rights: you should be able to list all the permissions available on your wiki by running.

Menambahkan hak baru
Informasi untuk koder hanya mengikuti.

If you're adding a new right in core, for instance to control a new special page, you are required to add it to the list of available rights in,  (example). If you're, you instead need to use.

You probably also want to assign it to some user group by editing described above.

If you want this right to be accessible to external applications by  or by bot passwords, then you will need to add it to a grant by editing.

You also need to add  and   interface messages to /languages/i18n/en.json (with documentation in qqq.json). The right-* messages can be seen on Special:ListGroupRights and the action-* messages are used in a sentence like "You do not have permission to ...".

Lihat pula

 * Special:ListGroupRights – links to this help page and might contain not yet documented rights
 * – help page describing use of the Special:Userrights interface (for bureaucrats)
 * – information about managing and the assignment of user groups.
 * – Contoh
 * – Banyak extensi yang berhubungan dengan hak pengguna
 * – Contoh
 * – Banyak extensi yang berhubungan dengan hak pengguna
 * – Banyak extensi yang berhubungan dengan hak pengguna
 * – Banyak extensi yang berhubungan dengan hak pengguna