d8997edc57
- Most of model-related code moved from controllers to model classes, much fewer calls to R::whatever() in controllers - Post editing and uploading shares the same code, thus making implementing stuff easier in the future - Added support for default bean wiring, no more calls to R::preload() all over the place - More robust concurrent post editing detection
45 lines
977 B
PHP
45 lines
977 B
PHP
<?php
|
|
class Privilege extends Enum
|
|
{
|
|
const ListPosts = 1;
|
|
const UploadPost = 2;
|
|
const ViewPost = 3;
|
|
const RetrievePost = 4;
|
|
const FavoritePost = 5;
|
|
const EditPostSafety = 6;
|
|
const EditPostTags = 7;
|
|
const EditPostThumb = 8;
|
|
const EditPostSource = 26;
|
|
const EditPostRelations = 30;
|
|
const EditPostFile = 36;
|
|
const HidePost = 9;
|
|
const DeletePost = 10;
|
|
const FeaturePost = 25;
|
|
const ScorePost = 31;
|
|
const FlagPost = 34;
|
|
|
|
const ListUsers = 11;
|
|
const ViewUser = 12;
|
|
const ViewUserEmail = 22;
|
|
const BanUser = 13;
|
|
const AcceptUserRegistration = 14;
|
|
const ChangeUserPassword = 15;
|
|
const ChangeUserAccessRank = 16;
|
|
const ChangeUserEmail = 17;
|
|
const ChangeUserName = 18;
|
|
const ChangeUserSettings = 28;
|
|
const DeleteUser = 19;
|
|
const FlagUser = 35;
|
|
|
|
const ListComments = 20;
|
|
const AddComment = 23;
|
|
const DeleteComment = 24;
|
|
|
|
const ListTags = 21;
|
|
const MergeTags = 27;
|
|
const RenameTags = 27;
|
|
const MassTag = 29;
|
|
|
|
const ListLogs = 32;
|
|
const ViewLog = 33;
|
|
}
|