From 6c5a53c2b8e2ea995f6532110b26fbeb3e18735d Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 20 Aug 2006 05:07:40 +0000 Subject: [PATCH] r1090: Adding canviewownhidden --- admin/permission.php | 3 ++- admin/usergroup.php | 1 + docs/schema_changes.sql | 2 ++ includes/permissions.php | 3 ++- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/admin/permission.php b/admin/permission.php index dcbea49..c4a7b53 100755 --- a/admin/permission.php +++ b/admin/permission.php @@ -39,7 +39,8 @@ if (!can_perform('canadmingroups')) $permissions = array( _('General Permissions') => array( 'canviewbugs' => _('Can View Bugs'), - 'canviewhidden' => _('Can View Hidden Bugs and Comments'), + 'canviewhidden' => _('Can View All Hidden Bugs and Comments'), + 'canviewownhidden' => _('Can View Own Hidden Bugs and Comments'), 'cansubscribe' => _('Can Subscribe to Bugs'), ), diff --git a/admin/usergroup.php b/admin/usergroup.php index d296e08..2477a4e 100755 --- a/admin/usergroup.php +++ b/admin/usergroup.php @@ -40,6 +40,7 @@ $permissions = array( _('General Permissions') => array( 'canviewbugs' => _('Can View Bugs'), 'canviewhidden' => _('Can View Hidden Bugs and Comments'), + 'canviewownhidden' => _('Can View Own Hidden Bugs and Comments'), 'cansearch' => _('Can Search Bugs'), 'cansubscribe' => _('Can Subscribe to Bugs'), 'canbeassignedto' => _('Can Be Assigned Bugs') diff --git a/docs/schema_changes.sql b/docs/schema_changes.sql index 4e90f97..ceb334f 100644 --- a/docs/schema_changes.sql +++ b/docs/schema_changes.sql @@ -11,3 +11,5 @@ ALTER TABLE favourite RENAME favorite; ALTER TABLE user CHANGE showcolours showcolors BOOL NULL; ALTER TABLE language DROP debug; + +UPDATE usergroup SET permissions = permissions + 33554432 WHERE usergroupid IN (2, 5, 6); diff --git a/includes/permissions.php b/includes/permissions.php index abe55b3..8ef5a2b 100644 --- a/includes/permissions.php +++ b/includes/permissions.php @@ -44,7 +44,8 @@ $bugsys->permissions = array( 'caneditattach' => 2097152, // can edit attachments 'canviewhidden' => 4194304, // can see hidden bugs 'caneditotherreply' => 8388608, // can edit other peoples' comments - 'candeletedata' => 16777216 // can delete data (bugs, comments) + 'candeletedata' => 16777216, // can delete data (bugs, comments) + 'canviewownhidden' => 33554432 // can view own hidden bugs ); $bugsys->emailoptions = array( -- 2.43.5