szurubooru/src/Models/Privilege.php

45 lines
951 B
PHP
Raw Normal View History

2013-10-06 13:21:16 +02:00
<?php
2013-10-07 23:17:33 +02:00
class Privilege extends Enum
2013-10-06 13:21:16 +02:00
{
2013-10-07 23:17:33 +02:00
const ListPosts = 1;
const UploadPost = 2;
const ViewPost = 3;
const RetrievePost = 4;
2013-10-12 14:53:47 +02:00
const FavoritePost = 5;
2013-10-13 12:28:16 +02:00
const EditPostSafety = 6;
const EditPostTags = 7;
const EditPostThumb = 8;
const EditPostSource = 26;
2013-10-30 20:20:01 +01:00
const EditPostRelations = 30;
2013-10-13 12:28:16 +02:00
const HidePost = 9;
const DeletePost = 10;
2013-10-19 13:38:20 +02:00
const FeaturePost = 25;
2013-11-10 12:23:59 +01:00
const ScorePost = 31;
2013-11-17 14:52:46 +01:00
const FlagPost = 34;
2013-10-13 12:28:16 +02:00
const ListUsers = 11;
2013-10-14 10:22:53 +02:00
const ViewUser = 12;
const ViewUserEmail = 22;
const BanUser = 13;
const AcceptUserRegistration = 14;
const ChangeUserPassword = 15;
const ChangeUserAccessRank = 16;
const ChangeUserEmail = 17;
const ChangeUserName = 18;
2013-10-25 17:25:05 +02:00
const ChangeUserSettings = 28;
const DeleteUser = 19;
2013-11-17 14:52:46 +01:00
const FlagUser = 35;
2013-10-14 10:22:53 +02:00
const ListComments = 20;
const AddComment = 23;
2013-10-17 23:37:41 +02:00
const DeleteComment = 24;
const ListTags = 21;
2013-10-20 00:31:22 +02:00
const MergeTags = 27;
const RenameTags = 27;
const MassTag = 29;
2013-11-17 14:39:50 +01:00
const ListLogs = 32;
const ViewLog = 33;
2013-10-06 13:21:16 +02:00
}