r665: Renaming product from "BugStrike" to "Bugdar"
[bugdar.git] / includes / permissions.php
1 <?php
2 /*=====================================================================*\
3 || ################################################################### ||
4 || # Bugdar [#]version[#]
5 || # --------------------------------------------------------------- # ||
6 || # Copyright ©2002-[#]year[#] by Iris Studios, Inc. All Rights Reserved. # ||
7 || # This file may not be reproduced in any way without permission. # ||
8 || # --------------------------------------------------------------- # ||
9 || # User License Agreement at http://www.iris-studios.com/license/ # ||
10 || ################################################################### ||
11 \*=====================================================================*/
12
13 $_PERMISSION = array(
14 'canviewbugs' => 1, // can view bugs
15 'cansearch' => 2, // can use the search
16 'cansubscribe' => 4, // can email subscribe
17 'canvote' => 8, // can vote on bugs
18 'cansubmitbugs' => 16, // can submit new bugs
19 'canpostcomments' => 32, // can post new comments
20 'cangetattach' => 64, // can dl attachments
21 'canputattach' => 128, // can ul attachments
22 'caneditown' => 256, // can edit own bugs
23 'caneditother' => 512, // can edit others' bugs
24 'caneditownreply' => 1024, // can edit own comments
25 'canassign' => 2048, // can assign bug
26 'canchangestatus' => 4096, // can change bug status
27 'canadminpanel' => 8192, // can view admin panel
28 'canadminbugs' => 16384, // can administrate bug functions
29 'canadminversions' => 32768, // can admin version info
30 'canadminusers' => 65536, // can admin users
31 'canadmingroups' => 131072, // can admin permission masks
32 'canadmintools' => 262144, // can use admin tools
33 'canadminfields' => 524288, // can admin custom bug fields
34 'canbeassignedto' => 1048576, // can be assigned bugs,
35 'caneditattach' => 2097152, // can edit attachments
36 'canviewhidden' => 4194304, // can see hidden bugs
37 'caneditotherreply' => 8388608 // can edit other peoples' comments
38 );
39
40 foreach ($_PERMISSION AS $name => $maskvalue)
41 {
42 define(strtoupper($name), $maskvalue);
43 }
44
45 /*=====================================================================*\
46 || ###################################################################
47 || # $HeadURL$
48 || # $Id$
49 || ###################################################################
50 \*=====================================================================*/
51 ?>