mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
adding link to group permissions for user's group
git-svn-id: http://piwigo.org/svn/trunk@49 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -137,6 +137,8 @@ while ( $row = mysql_fetch_array( $result ) )
|
||||
foreach ( $usergroups as $i => $usergroup ) {
|
||||
$vtp->addSession( $sub, 'usergroup' );
|
||||
$vtp->setVar( $sub, 'usergroup.name', $groups[$usergroup] );
|
||||
$url = './admin.php?page=group_perm&group_id='.$usergroup;
|
||||
$vtp->setVar( $sub, 'usergroup.url', add_session_id( $url ) );
|
||||
if ( in_array( $usergroup, $authorized_groups ) )
|
||||
{
|
||||
$vtp->setVar( $sub, 'usergroup.color', 'green' );
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<!--VTP_usergroups-->
|
||||
[
|
||||
<!--VTP_usergroup-->
|
||||
<span style="color:{#color};">{#name}</span>{#separation}
|
||||
<a href="{#url}" style="color:{#color};">{#name}</a>{#separation}
|
||||
<!--/VTP_usergroup-->
|
||||
]
|
||||
<!--/VTP_usergroups-->
|
||||
|
||||
Reference in New Issue
Block a user