r765: Say hello to the GPL
[bugdar.git] / includes / permissions.php
1 <?php
2 /*=====================================================================*\
3 || ###################################################################
4 || # Bugdar [#]version[#]
5 || # Copyright ©2002-[#]year[#] Iris Studios, Inc.
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 [#]gpl[#] 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 $_PERMISSION = 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 );
48
49 foreach ($_PERMISSION AS $name => $maskvalue)
50 {
51 define(strtoupper($name), $maskvalue);
52 }
53
54 /*=====================================================================*\
55 || ###################################################################
56 || # $HeadURL$
57 || # $Id$
58 || ###################################################################
59 \*=====================================================================*/
60 ?>