[vhffs-dev] [1142] Administrators can now see a group whatever its state is.

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1142
Author:   beuss
Date:     2008-02-01 07:09:00 +0000 (Fri, 01 Feb 2008)

Log Message:
-----------
Administrators can now see a group whatever its state is.

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Panel/Main.pm


Modified: trunk/vhffs-api/src/Vhffs/Panel/Main.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Main.pm	2008-01-26 21:39:33 UTC (rev 1141)
+++ trunk/vhffs-api/src/Vhffs/Panel/Main.pm	2008-02-01 07:09:00 UTC (rev 1142)
@@ -387,7 +387,7 @@
 	$groupname = $session->param('project');
 	if( defined $groupname )  {
 		my $group = Vhffs::Group::get_by_groupname( $vhffs, $groupname );
-		if(  defined $group  &&  $group->get_status == Vhffs::Constants::ACTIVATED  &&  $user->can_view( $group )  )  {
+		if(  defined $group  &&  ( ($group->get_status == Vhffs::Constants::ACTIVATED  &&  $user->can_view( $group )) || $user->is_admin() )  )  {
 			$panel->{'group'} = $group;
 			$panel->{'groupname'} = $groupname;
 		}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/