This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/libraries/Perms/Forum.php
2016-02-02 22:04:15 +01:00

66 lines
1.2 KiB
PHP

<?php
namespace Sakura\Perms;
/**
* All forum permission flags.
*
* @package Sakura
* @author Julian van de Groep <me@flash.moe>
*/
class Forum
{
/**
* Can this user view/read this forum?
*/
const VIEW = 1;
/**
* Can this user post/reply in this forum?
*/
const REPLY = 2;
/**
* Can this user create threads in this forum?
*/
const CREATE_THREADS = 4;
/**
* Can this user edit their own posts?
*/
const EDIT_OWN = 8;
/**
* Can this user delete their own posts?
*/
const DELETE_OWN = 16;
/**
* Can this user change threads to the sticky type?
*/
const STICKY = 32;
/**
* Can this user change threads to the announcement type?
*/
const ANNOUNCEMENT = 64;
/**
* Can this user edit any post in this forum?
*/
const EDIT_ANY = 128;
/**
* Can this user delete any post in this forum?
*/
const DELETE_ANY = 256;
/**
* Can this user toggle the locked status on threads in this forum?
*/
const LOCK = 512;
/**
* Can this user move threads to other forums from/to this forum?
*/
const MOVE = 1024;
}