31
31
* @author fplanque: Francois PLANQUE
32
32
* @author blueyed: Daniel HAHLER
34
* @version $Id: _group.form.php,v 1.28 2010/05/07 08:07:14 efy-asimo Exp $
34
* @version $Id: _group.form.php,v 1.29 2010/10/15 13:10:09 efy-asimo Exp $
36
36
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );
65
65
$perm = $permissions[$perm_name];
66
66
if( $perm['perm_block'] == $perm_block )
68
if( isset( $perm['perm_type'] ) )
68
if( ! isset( $perm['perm_type'] ) )
70
switch( $perm['perm_type'] )
73
$Form->checkbox_input( 'edited_grp_'.$perm_name, $GroupSettings->permission_values[$perm_name] == 'allowed', $perm['label'], array( 'input_suffix' => ' '.$perm['note'], 'value' => 'allowed' ) );
77
$Form->radio( 'edited_grp_'.$perm_name, $GroupSettings->permission_values[$perm_name], $perm['options'], $perm['label'], true );
70
$perm['perm_type'] = 'radiobox';
73
switch( $perm['perm_type'] )
83
$Form->radio( 'edited_grp_'.$perm_name, $GroupSettings->permission_values[$perm_name], $perm['options'], $perm['label'], true );
76
$Form->checkbox_input( 'edited_grp_'.$perm_name, $GroupSettings->permission_values[$perm_name] == 'allowed', $perm['label'], array( 'input_suffix' => ' '.$perm['note'], 'value' => 'allowed' ) );
80
if( ! isset( $perm['field_lines'] ) )
82
$perm['field_lines'] = true;
84
if( ! isset( $perm['field_note'] ) )
86
$perm['field_note'] = '';
88
$Form->radio( 'edited_grp_'.$perm_name, $GroupSettings->permission_values[$perm_name], $perm['options'], $perm['label'], $perm['field_lines'], $perm['field_note'] );
184
190
array( 'edit', T_('Full Access'), T_('Includes deleting/reassigning of stats') )
185
191
), T_('Stats'), true );
187
// fp> todo perm check
188
$filetypes_linkstart = '<a href="?ctrl=filetypes" title="'.T_('Edit locked file types...').'">';
189
$filetypes_linkend = '</a>';
190
$Form->radio( 'edited_grp_perm_files', $edited_Group->get('perm_files'),
191
array( $perm_none_option,
192
array( 'view', T_('View files for all allowed roots') ),
193
array( 'add', T_('Add/Upload files to allowed roots') ),
194
array( 'edit', sprintf( T_('Edit %sunlocked files'), $filetypes_linkstart.get_icon('file_allowed').$filetypes_linkend ) ),
195
array( 'all', sprintf( T_('Edit all files, including %slocked ones'), $filetypes_linkstart.get_icon('file_not_allowed').$filetypes_linkend ), T_('Needed for editing PHP files in skins.') ),
197
), T_('Files'), true, T_('This setting will further restrict any media file permissions on specific blogs.') );
200
193
// Display pluggable permissions:
201
194
display_pluggable_permissions( $Form, 'additional' );
205
198
$Form->begin_fieldset( T_('System admin permissions').get_manual_link('group_properties_system_permissions') );
207
$Form->radio( 'edited_grp_perm_spamblacklist', $edited_Group->get('perm_spamblacklist'),
208
array( $perm_none_option,
209
array( 'view', T_('View only') ),
210
array( 'edit', T_('Full Access') )
211
), T_('Antispam'), false );
213
$Form->radio( 'edited_grp_perm_slugs', $edited_Group->get('perm_slugs'),
214
array( $perm_none_option,
215
array( 'view', T_('View only') ),
216
array( 'edit', T_('Full Access') )
217
), T_('Slug manager'), false );
219
$Form->checkbox( 'edited_grp_perm_templates', $edited_Group->get('perm_templates'), T_('Skins'), T_('Check to allow access to skin files.') );
200
display_pluggable_permissions( $Form, 'core');
221
202
if( $edited_Group->ID != 1 )
222
203
{ // Groups others than #1 can be prevented from editing users
230
211
{ // Group #1 always has user management right:
231
212
$Form->info( T_('Users & Groups'), T_('Full Access') );
233
$Form->radio( 'edited_grp_perm_options', $edited_Group->get('perm_options'),
234
array( $perm_none_option,
215
// asimo>After perm_users will be converted to pluggable permission 'core2' can be changed to 'core'
216
display_pluggable_permissions( $Form, 'core2' );
239
218
// Display pluggable permissions:
240
219
display_pluggable_permissions( $Form, 'system' );
254
233
* $Log: _group.form.php,v $
234
* Revision 1.29 2010/10/15 13:10:09 efy-asimo
235
* Convert group permissions to pluggable permissions - part1
255
237
* Revision 1.28 2010/05/07 08:07:14 efy-asimo
256
238
* Permissions check update (User tab, Global Settings tab) - bugfix