Skip to content

Commit 23b7f52

Browse files
committed
Refactor user options bitmask fields
1 parent a4a44e9 commit 23b7f52

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

src/libraries/User.php

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,29 @@
2020

2121
class User implements JsonSerializable {
2222

23-
const OPTION_ACL_DOCUMENT_CREATE = 0x00000001;
24-
const OPTION_ACL_DOCUMENT_MODIFY = 0x00000002;
25-
const OPTION_ACL_DOCUMENT_DELETE = 0x00000004;
26-
const OPTION_ACL_EVENT_LOG_VIEW = 0x00000008;
27-
const OPTION_ACL_EVENT_LOG_MODIFY = 0x00000010;
28-
const OPTION_ACL_EVENT_LOG_DELETE = 0x00000020;
29-
const OPTION_ACL_NEWS_CREATE = 0x00000040;
30-
const OPTION_ACL_NEWS_MODIFY = 0x00000080;
31-
const OPTION_ACL_NEWS_DELETE = 0x00000100;
32-
const OPTION_ACL_PACKET_CREATE = 0x00000200;
33-
const OPTION_ACL_PACKET_MODIFY = 0x00000400;
34-
const OPTION_ACL_PACKET_DELETE = 0x00000800;
35-
const OPTION_ACL_SERVER_CREATE = 0x00001000;
36-
const OPTION_ACL_SERVER_MODIFY = 0x00002000;
37-
const OPTION_ACL_SERVER_DELETE = 0x00004000;
38-
const OPTION_ACL_USER_CREATE = 0x00008000;
39-
const OPTION_ACL_USER_MODIFY = 0x00010000;
40-
const OPTION_ACL_USER_DELETE = 0x00020000;
41-
const OPTION_DISABLED = 0x00040000;
42-
const OPTION_VERIFIED = 0x00080000;
23+
const OPTION_DISABLED = 0x00000001;
24+
const OPTION_VERIFIED = 0x00000002;
25+
const OPTION_ACL_DOCUMENT_CREATE = 0x00000004;
26+
const OPTION_ACL_DOCUMENT_MODIFY = 0x00000008;
27+
const OPTION_ACL_DOCUMENT_DELETE = 0x00000010;
28+
const OPTION_ACL_COMMENT_CREATE = 0x00000020;
29+
const OPTION_ACL_COMMENT_MODIFY = 0x00000040;
30+
const OPTION_ACL_COMMENT_DELETE = 0x00000080;
31+
const OPTION_ACL_EVENT_LOG_VIEW = 0x00000100;
32+
const OPTION_ACL_EVENT_LOG_MODIFY = 0x00000200;
33+
const OPTION_ACL_EVENT_LOG_DELETE = 0x00000400;
34+
const OPTION_ACL_NEWS_CREATE = 0x00000800;
35+
const OPTION_ACL_NEWS_MODIFY = 0x00001000;
36+
const OPTION_ACL_NEWS_DELETE = 0x00002000;
37+
const OPTION_ACL_PACKET_CREATE = 0x00004000;
38+
const OPTION_ACL_PACKET_MODIFY = 0x00008000;
39+
const OPTION_ACL_PACKET_DELETE = 0x00010000;
40+
const OPTION_ACL_SERVER_CREATE = 0x00020000;
41+
const OPTION_ACL_SERVER_MODIFY = 0x00040000;
42+
const OPTION_ACL_SERVER_DELETE = 0x00080000;
43+
const OPTION_ACL_USER_CREATE = 0x00100000;
44+
const OPTION_ACL_USER_MODIFY = 0x00200000;
45+
const OPTION_ACL_USER_DELETE = 0x00400000;
4346

4447
protected $created_datetime;
4548
protected $display_name;

0 commit comments

Comments
 (0)