Version 4.7.0
This commit is contained in:
1 parent
517a5e1f70
commit
8ba7d43898
1933 files changed
+65613
-11332
No files matched your search
@@ -390,7 +390,6 @@ class _Controller extends \IPS\Dispatcher\Controller
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Build form */
|
||||
$form = $this->_addEditForm( $node );
|
||||
|
||||
@@ -1121,10 +1120,22 @@ class _Controller extends \IPS\Dispatcher\Controller
|
||||
$matrix = new \IPS\Helpers\Form\Matrix;
|
||||
$matrix->manageable = FALSE;
|
||||
$matrix->langPrefix = $nodeClass::$permissionLangPrefix . 'perm__';
|
||||
$matrix->styledRowTitle = TRUE;
|
||||
$matrix->columns = array(
|
||||
'label' => function( $key, $value, $data )
|
||||
{
|
||||
return $value;
|
||||
$groupId = explode( '[', $key )[0];
|
||||
$groupLink = NULL;
|
||||
|
||||
/* Let's try to get a link to the group's permissions */
|
||||
try
|
||||
{
|
||||
\IPS\Member\Group::load( $groupId );
|
||||
$groupLink = \IPS\Http\Url::internal( "app=core&module=members&controller=groups&do=permissions&id=" . $groupId );
|
||||
}
|
||||
catch ( \OutOfRangeException $e ) { }
|
||||
|
||||
return \IPS\Theme::i()->getTemplate( 'global', 'core', 'global' )->titleWithLink( $value, $groupLink, 'all_permissions', \IPS\Member::loggedIn()->language()->addToStack( "all_permissions_group_hovertitle", FALSE, array( 'sprintf' => [ $value ] ) ) );
|
||||
},
|
||||
);
|
||||
|
||||
@@ -1156,7 +1167,7 @@ class _Controller extends \IPS\Dispatcher\Controller
|
||||
|
||||
if ( $disabled === FALSE )
|
||||
{
|
||||
$disabled = ( $groupId == \IPS\Settings::i()->guest_group AND \in_array( $k, array('review', 'rate' ) ) ) ? TRUE : FALSE;
|
||||
$disabled = ( $groupId == \IPS\Settings::i()->guest_group AND \in_array( $k, array( 'review', 'rate' ) ) ) ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
$fieldValue = ( isset( $current[ "perm_{$v}" ] ) and ( $current[ "perm_{$v}" ] === '*' or \in_array( $groupId, explode( ',', $current[ "perm_{$v}" ] ) ) ) );
|
||||
|
||||
Reference in new issue
Block a user