]> src.bluestatic.org Git - bugdar.git/blob - includes/permissions.php
Update functions_product.php to use proper naming
[bugdar.git] / includes / permissions.php
1 <?php
2 /*=====================================================================*\
3 || ###################################################################
4 || # Bugdar
5 || # Copyright ©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 bugdar::$permissions = array(
23 'canviewbugs' => 1, // can view bugs
24 'cansearch' => 2, // can use the search
25 'cansubscribe' => 4, // can email subscribe
26 'canvote' => 8, // can vote on bugs
27 'cansubmitbugs' => 16, // can submit new bugs
28 'canpostcomments' => 32, // can post new comments
29 'cangetattach' => 64, // can dl attachments
30 'canputattach' => 128, // can ul attachments
31 'caneditown' => 256, // can edit own bugs
32 'caneditother' => 512, // can edit others' bugs
33 'caneditownreply' => 1024, // can edit own comments
34 'canassign' => 2048, // can assign bug
35 'canchangestatus' => 4096, // can change bug status
36 'canadminpanel' => 8192, // can view admin panel
37 'canadminbugs' => 16384, // can administrate bug functions
38 'canadminversions' => 32768, // can admin version info
39 'canadminusers' => 65536, // can admin users
40 'canadmingroups' => 131072, // can admin permission masks
41 'canadmintools' => 262144, // can use admin tools
42 'canadminfields' => 524288, // can admin custom bug fields
43 'canbeassignedto' => 1048576, // can be assigned bugs,
44 'caneditattach' => 2097152, // can edit attachments
45 'canviewhidden' => 4194304, // can see hidden bugs
46 'caneditotherreply' => 8388608, // can edit other peoples' comments
47 'candeletedata' => 16777216, // can delete data (bugs, comments)
48 'canviewownhidden' => 33554432 // can view own hidden bugs
49 );
50
51 bugdar::$emailOptions = array(
52 'relations' => array(
53 // a user's relation to the bug
54 '-notapplicable-' => 0, // not applicable
55 'reporter' => 1, // report the bug
56 'assignee' => 2, // assigned to the bug
57 'favorite' => 4, // on the favorites list
58 'voter' => 8, // voted for the bug
59 'commenter' => 16 // left a comment on the bug
60 ),
61
62 'notifications' => array(
63 // notification message types
64 'assignedto' => 32, // I am made the assignee
65 'statusresolve' => 64, // status or resolution changes
66 'duplicates' => 128, // a duplicate bug is added
67 'newcomment' => 256, // new comment
68 'newattachment' => 512, // new attachment
69 'otherfield' => 1024, // any other field changes
70 'newbug' => 2048 // new bug
71 )
72 );
73
74 /*=====================================================================*\
75 || ###################################################################
76 || # $HeadURL$
77 || # $Id$
78 || ###################################################################
79 \*=====================================================================*/
80 ?>