Fix DB_MySQL_PDO::escape_binary().
[bugdar.git] / includes / permissions.php
1 <?php
2 /*=====================================================================*\
3 || ###################################################################
4 || # Bugdar
5 || # Copyright (c)2002-2007 Blue Static
6 || #
7 || # This program is free software; you can redistribute it and/or modify
8 || # it under the terms of the GNU General Public License as published by
9 || # the Free Software Foundation; version 2 of the License.
10 || #
11 || # This program is distributed in the hope that it will be useful, but
12 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 || # more details.
15 || #
16 || # You should have received a copy of the GNU General Public License along
17 || # with this program; if not, write to the Free Software Foundation, Inc.,
18 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 || ###################################################################
20 \*=====================================================================*/
21
22 $bugsys->permissions = array(
23 'canviewbugs' => 1 << 0, // can view bugs
24 'cansearch' => 1 << 1, // can use the search
25 'cansubscribe' => 1 << 2, // can email subscribe
26 'canvote' => 1 << 3, // can vote on bugs
27 'cansubmitbugs' => 1 << 4, // can submit new bugs
28 'canpostcomments' => 1 << 5, // can post new comments
29 'cangetattach' => 1 << 6, // can dl attachments
30 'canputattach' => 1 << 7, // can ul attachments
31 'caneditown' => 1 << 8, // can edit own bugs
32 'caneditother' => 1 << 9, // can edit others' bugs
33 'caneditownreply' => 1 << 10, // can edit own comments
34 'canassign' => 1 << 11, // can assign bug
35 'canchangestatus' => 1 << 12, // can change bug status
36 'canadminpanel' => 1 << 13, // can view admin panel
37 'canadminbugs' => 1 << 14, // can administrate bug functions
38 'canadminversions' => 1 << 15, // can admin version info
39 'canadminusers' => 1 << 16, // can admin users
40 'canadmingroups' => 1 << 17, // can admin permission masks
41 'canadmintools' => 1 << 18, // can use admin tools
42 'canadminfields' => 1 << 19, // can admin custom bug fields
43 'canbeassignedto' => 1 << 20, // can be assigned bugs,
44 'caneditattach' => 1 << 21, // can edit attachments
45 'canviewhidden' => 1 << 22, // can see hidden bugs
46 'caneditotherreply' => 1 << 23, // can edit other peoples' comments
47 'candeletedata' => 1 << 24, // can delete data (bugs, comments)
48 'canviewownhidden' => 1 << 25, // can view own hidden bugs
49 );
50
51 $bugsys->emailoptions = array(
52 'relations' => array(
53 // a user's relation to the bug
54 '-notapplicable-' => 0, // not applicable
55 'reporter' => 1 << 0, // report the bug
56 'assignee' => 1 << 1, // assigned to the bug
57 'favorite' => 1 << 2, // on the favorites list
58 'voter' => 1 << 3, // voted for the bug
59 'commenter' => 1 << 4, // left a comment on the bug
60 ),
61
62 'notifications' => array(
63 // notification message types
64 'assignedto' => 1 << 5, // I am made the assignee
65 'statusresolve' => 1 << 6, // status or resolution changes
66 'duplicates' => 1 << 7, // a duplicate bug is added
67 'newcomment' => 1 << 8, // new comment
68 'newattachment' => 1 << 9, // new attachment
69 'otherfield' => 1 << 10, // any other field changes
70 'newbug' => 1 << 11, // new bug
71 )
72 );
73