szurubooru/src/Privilege.php

47 lines
1.6 KiB
PHP
Raw Normal View History

2014-09-04 19:57:06 +02:00
<?php
namespace Szurubooru;
class Privilege
{
const REGISTER = 'register';
const LIST_USERS = 'listUsers';
2014-09-30 22:09:43 +02:00
const VIEW_USERS = 'viewUsers';
const VIEW_ALL_EMAIL_ADDRESSES = 'viewAllEmailAddresses';
const CHANGE_ACCESS_RANK = 'changeAccessRank';
const CHANGE_OWN_AVATAR_STYLE = 'changeOwnAvatarStyle';
const CHANGE_OWN_EMAIL_ADDRESS = 'changeOwnEmailAddress';
const CHANGE_OWN_NAME = 'changeOwnName';
const CHANGE_OWN_PASSWORD = 'changeOwnPassword';
const CHANGE_ALL_AVATAR_STYLES = 'changeAllAvatarStyles';
const CHANGE_ALL_EMAIL_ADDRESSES = 'changeAllEmailAddresses';
const CHANGE_ALL_NAMES = 'changeAllNames';
const CHANGE_ALL_PASSWORDS = 'changeAllPasswords';
const DELETE_OWN_ACCOUNT = 'deleteOwnAccount';
const DELETE_ALL_ACCOUNTS = 'deleteAllAccounts';
2014-09-30 13:22:11 +02:00
const BAN = 'ban';
2014-09-07 19:49:11 +02:00
2014-09-30 22:09:43 +02:00
const LIST_POSTS = 'listPosts';
const VIEW_POSTS = 'viewPosts';
2014-09-07 19:49:11 +02:00
const UPLOAD_POSTS = 'uploadPosts';
2014-09-15 11:38:24 +02:00
const UPLOAD_POSTS_ANONYMOUSLY = 'uploadPostsAnonymously';
2014-09-23 20:18:12 +02:00
const DELETE_POSTS = 'deletePosts';
2014-09-24 23:24:51 +02:00
const FEATURE_POSTS = 'featurePosts';
2014-09-25 19:11:41 +02:00
const CHANGE_POST_SAFETY = 'changePostSafety';
const CHANGE_POST_SOURCE = 'changePostSource';
const CHANGE_POST_TAGS = 'changePostTags';
const CHANGE_POST_CONTENT = 'changePostContent';
const CHANGE_POST_THUMBNAIL = 'changePostThumbnail';
2014-09-25 23:53:47 +02:00
const CHANGE_POST_RELATIONS = 'changePostRelations';
2014-09-07 19:49:11 +02:00
const LIST_TAGS = 'listTags';
2014-09-26 20:41:28 +02:00
2014-10-04 13:56:38 +02:00
const LIST_COMMENTS = 'listComments';
const ADD_COMMENTS = 'addComments';
const EDIT_OWN_COMMENTS = 'editOwnComments';
const EDIT_ALL_COMMENTS = 'editAllComments';
const DELETE_OWN_COMMENTS = 'deleteOwnComments';
const DELETE_ALL_COMMENTS = 'deleteAllComments';
2014-09-26 20:41:28 +02:00
const VIEW_HISTORY = 'viewHistory';
2014-09-04 19:57:06 +02:00
}