Roles and permissions
Everyone has a role, and a role is a set of permissions. Logged-out visitors have the Anonymous role. Edit roles under Admin → Roles: rename them, and choose their permissions. You can only hand on permissions you have yourself; ones you lack stay as they are.
Adding roles
Add a role at the bottom of Admin → Roles with a name, a rank below your own, and optionally the permissions of an existing role to start from. The ranks of added roles can be changed later, and they can be deleted, which moves their users to a role you choose. The built-in roles can’t be deleted and keep their ranks.
| Permission | Allows |
|---|---|
| View posts | seeing posts, tags and profiles; take it from Anonymous for a private site |
| Upload | uploading posts |
| Upload without approval | skipping the approval queue, when it’s on |
| Edit posts and tags | changing a post’s tags, rating, source, description and parent; requesting aliases and implications |
| Favorite, Vote | favoriting posts; voting on posts and comments |
| Comment | posting comments, and editing and deleting your own |
| Edit the wiki and artists | |
| Mass edit tags | adding and removing tags on every post a search finds (Moderation → Mass edit) |
| Lock posts and change locked ones | locking a post’s rating, tags, notes or status, and changing them anyway |
| Undo a user’s post edits | taking back every post edit a user made in a range of days (Moderation → Post changes) |
| Send private messages | writing to other users (Messages) |
| Leave feedback on users of lower rank | positive, neutral or negative notes on someone’s account (Feedback) |
| Invite people | making invite codes, up to the site’s quota (Invites) |
| Replace posts’ files | swapping a post’s file for a better one, keeping everything else (Posts and files) |
| Edit notes | adding, moving, changing and deleting notes on posts |
| Create and edit pools | making pools, and changing their posts, names and descriptions (deleting a pool takes Delete and restore posts) |
| Flag posts | asking moderators to delete a post |
| Approve posts and handle flags | the approval and flag queues |
| Delete and restore posts | |
| Purge posts | removing deleted posts and their files for good |
| Manage tags, aliases and implications | moving tags between categories, deprecating tags, deciding alias and implication requests; banning artists, and renaming, deleting or restoring a banned artist’s entry |
| See deleted posts | deleted posts and comments |
| Hide comments and forum posts, and handle reports about them | hiding and restoring anyone’s comments and forum posts, the reported comments queue, writing held as spam, and reports about forum posts, wiki pages, pools, notes and artists |
| Read reported and held private messages | private messages their recipients reported or the spam filter held, and settling them |
| Ban users and networks | also reports about users and feedback |
| Manage users | changing other users’ roles and account status; any number and kind of invites |
| Manage site settings and roles | also the admin pages for tag categories, news and webhooks |
| Read the moderation log |
The built-in roles and what they start with:
| Role | Rank | Permissions |
|---|---|---|
| Anonymous | 0 | View posts |
| Member | 10 | Anonymous, plus Upload, Edit posts and tags, Comment, Favorite, Vote, Flag posts, Edit the wiki and artists, Create and edit pools, Edit notes, Send private messages |
| Contributor | 20 | Member, plus Upload without approval, Leave feedback |
| Janitor | 30 | Contributor, plus Approve posts, Delete and restore posts, Manage tags, See deleted posts, Hide comments |
| Moderator | 40 | Janitor, plus Ban users and networks, Read the moderation log, Mass edit tags, Lock posts, Undo a user’s post edits, Replace posts’ files, Invite people, Read reported and held private messages |
| Admin | 50 | everything |
Upload limits
Each role can limit uploads, under Admin → Roles (empty means no limit):
- Waiting for approval at once: when the approval queue is on, how many of a user’s uploads may wait in it. Members start at 10. Roles with Upload without approval skip the queue, so this doesn’t apply to them.
- Per day: uploads in the last 24 hours, queued or not.
With Limits on uploads waiting for approval grow… ticked in the site settings, the queue limit follows each user’s record, as on Danbooru: one more for every 10 of their uploads that were approved, one fewer for every 5 that were deleted, from 1 up to four times the role’s limit.
The upload page tells users how many uploads they have left, and why an
upload was refused; the API’s /users/me says the same under uploads.
Uploads sent at the same moment are counted one after another, so they
can’t get past a limit together.
Whatever the role’s limits, each account may upload 20 times in a short while, then once every 30 seconds, so that one account can’t flood the media tools that process every file. Sending files to be posted counts once, posting each of them counts again, and so does replacing a post’s file. Staff who can approve posts aren’t held to this.
Automatic promotion
With Automatic promotion ticked in the site settings, members become contributors (who upload without approval) once their record is good enough. Every hour, members are promoted who have at least the set number of approved uploads and post edits, have been registered for the set number of days, and have had at most the set number of uploads deleted in the last 30 days and at most the set number of negative feedback records from staff (ranked above contributors: one contributor’s word alone doesn’t hold someone back). Defaults: 50 uploads, no edits needed, 30 days, no recent deletions, no negative feedback.
Banned members and bots aren’t promoted, including those banned or kept from promotion while the hourly check runs. Staff who manage users can keep someone from automatic promotion with Never promote automatically on their profile. Promotions are in the moderation log, and profiles say when someone was promoted.
Rank
Staff act only on people below them: a moderator can ban members and janitors, but not other moderators or admins, nor ban a network one of them used, or see their addresses. The same goes for changing roles: you can give or take away only roles ranked below your own that grant nothing you lack, and never change your own role or status. That keeps a mistake, or a compromised account, from locking out the people above it.
The same goes for what people wrote or uploaded: deleting, restoring, rejecting or purging a post, dismissing flags on it or deciding its appeal; hiding or restoring a comment or dismissing reports about it; hiding, editing, renaming, locking or deleting forum posts and topics; and approving or rejecting writing held as spam all need you to outrank its writer or uploader (or the account to be gone). Your own you may act against, such as deleting your own upload, but not settle in your own favour: you can’t restore your own deleted upload, grant its appeal, dismiss flags or reports about your own work, or show your own hidden comment again. Approving your own pending upload is still allowed, as the queue explains. A refusal says which applies.
The owner
Admins share the top rank, so on their own they can’t act on each other.
One account is the site’s owner, who outranks every role: the owner
can ban, rename or change the role of an admin, give the admin role, and
moderate what admins wrote or uploaded. The first admin created with
moekura admin create-user becomes the owner (on sites that had admins
before, the oldest one did). Only the shell changes it:
moekura admin set-owner NAME hands ownership to someone else, and the
log records it.
From the shell, moekura admin set-role NAME ROLE changes anyone’s role,
which is how you recover if the last admin loses access, and
moekura admin lift-network-ban ADDRESS lifts network bans that lock
staff out.