Skip to content

imolainformatica/SemanticAuthProfiling

Repository files navigation


README for the SemanticAuthProfiling extension Copyright © 2019 Giacomo Lorenzo Licenses: GNU General Public Licence (GPL) GNU Free Documentation License (GFDL)

Installation

wfLoadExtension( 'SemanticAuthProfiling' );

Configuration

Group Creation

Create a groups to profile

$wgGroupPermissions['Mygroup1']=$wgGroupPermissions['user'];
$wgGroupPermissions['Mygroup2']= $wgGroupPermissions['user'];
$wgGroupPermissions['Mygroup3'] = $wgGroupPermissions['user'];
$wgGroupPermissions['Mygroup4'] = $wgGroupPermissions['user'];
$wgGroupPermissions['Mygroup5'] = $wgGroupPermissions['user'];
$wgGroupPermissions['Mygroup6'] = $wgGroupPermissions['user'];
$wgGroupPermissions['Mygroup7'] = $wgGroupPermissions['user'];
$wgGroupPermissions['Mygroup8']=$wgGroupPermissions['user'];

Default Time Refresh Page Admin

This timer need if use the page admin profiling functionality

$wgSelectiveActionResetTime = 60;

default permission

There is a default values if one or more groups are not defined then use the default permission to profiling that groups

$wgSemanticAuthProfilingDefaultPermissionEdit=false;
$wgSemanticAuthProfilingDefaultPermissionView=false;
$wgSemanticAuthProfilingDefaultPermissionMove=false;
$wgSemanticAuthProfilingDefaultPermissionCreate=false;

Profiling

Define profiling for each group need to declare a row for each group need to profiling

$wgSemanticAuthProfilingViewCategories ['Gruppo-Wiki']['Category-value']= true;
$wgSemanticAuthProfilingEditCategories ['Gruppo-Wiki']['Category-value'] = true;
$wgSemanticAuthProfilingMoveCategories['Gruppo-Wiki']['Category-value']= true;
$wgSemanticAuthProfilingCreateCategories['Gruppo-Wiki']['Category-value']= true;
$wgSemanticAuthProfilingDeleteCategories['Gruppo-Wiki']['Category-value']= true;

Wildcard

need to manage an action for all categories

$wgSelectiveActionViewCategories ['Gruppo-Wiki']['*']= true;
//edit
$wgSelectiveActionEditCategories ['Gruppo-Wiki']['*'] = false;
//move 
$wgSelectiveActionMoveCategories ['Gruppo-Wiki']['*']  =false;
// create
$wgSelectiveActionCreateCategories ['Gruppo-Wiki']['*'] = false;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages