[vhffs-dev] [1143] Moderators and administrators can now see a group whatever its state is. |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1143
Author: gradator
Date: 2008-02-01 16:51:39 +0000 (Fri, 01 Feb 2008)
Log Message:
-----------
Moderators and 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-02-01 07:09:00 UTC (rev 1142)
+++ trunk/vhffs-api/src/Vhffs/Panel/Main.pm 2008-02-01 16:51:39 UTC (rev 1143)
@@ -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 )) || $user->is_admin() ) ) {
+ if( defined $group && $user->can_view( $group ) ) {
$panel->{'group'} = $group;
$panel->{'groupname'} = $groupname;
}