make organizer optional
This commit is contained in:
parent
086a30e39c
commit
d3537daf8a
6 changed files with 50 additions and 10 deletions
|
@ -33,6 +33,14 @@ ModuleFunction('FileHandler',
|
|||
array(substr(__FILE__, strlen(__DIR__)+1),
|
||||
isset($_REQUEST['action']) ? $_REQUEST['action'] : ''));
|
||||
|
||||
/**
|
||||
* organizer enabled?
|
||||
*/
|
||||
if($groupRow['organizer']=='no')
|
||||
{
|
||||
header('Location: start.php?sid=' . session_id());
|
||||
exit();
|
||||
}
|
||||
/**
|
||||
* default action = start
|
||||
*/
|
||||
|
|
|
@ -31,6 +31,14 @@ RequestPrivileges(PRIVILEGES_USER);
|
|||
ModuleFunction('FileHandler',
|
||||
array(substr(__FILE__, strlen(__DIR__)+1),
|
||||
isset($_REQUEST['action']) ? $_REQUEST['action'] : ''));
|
||||
/**
|
||||
* organizer enabled?
|
||||
*/
|
||||
if($groupRow['organizer']=='no')
|
||||
{
|
||||
header('Location: start.php?sid=' . session_id());
|
||||
exit();
|
||||
}
|
||||
|
||||
/**
|
||||
* default action = start
|
||||
|
|
|
@ -30,7 +30,14 @@ RequestPrivileges(PRIVILEGES_USER);
|
|||
ModuleFunction('FileHandler',
|
||||
array(substr(__FILE__, strlen(__DIR__)+1),
|
||||
isset($_REQUEST['action']) ? $_REQUEST['action'] : ''));
|
||||
|
||||
/**
|
||||
* organizer enabled?
|
||||
*/
|
||||
if($groupRow['organizer']=='no')
|
||||
{
|
||||
header('Location: start.php?sid=' . session_id());
|
||||
exit();
|
||||
}
|
||||
/**
|
||||
* default action = start
|
||||
*/
|
||||
|
|
|
@ -31,6 +31,14 @@ ModuleFunction('FileHandler',
|
|||
array(substr(__FILE__, strlen(__DIR__)+1),
|
||||
isset($_REQUEST['action']) ? $_REQUEST['action'] : ''));
|
||||
|
||||
/**
|
||||
* organizer enabled?
|
||||
*/
|
||||
if($groupRow['organizer']=='no')
|
||||
{
|
||||
header('Location: start.php?sid=' . session_id());
|
||||
exit();
|
||||
}
|
||||
/**
|
||||
* default action = start
|
||||
*/
|
||||
|
|
|
@ -29,7 +29,14 @@ RequestPrivileges(PRIVILEGES_USER);
|
|||
ModuleFunction('FileHandler',
|
||||
array(substr(__FILE__, strlen(__DIR__)+1),
|
||||
isset($_REQUEST['action']) ? $_REQUEST['action'] : ''));
|
||||
|
||||
/**
|
||||
* organizer enabled?
|
||||
*/
|
||||
if($groupRow['organizer']=='no')
|
||||
{
|
||||
header('Location: start.php?sid=' . session_id());
|
||||
exit();
|
||||
}
|
||||
/**
|
||||
* default action = start
|
||||
*/
|
||||
|
|
|
@ -278,6 +278,7 @@ class Template extends Smarty
|
|||
];
|
||||
}
|
||||
|
||||
if($groupRow['organizer']=="yes") {
|
||||
$pageTabs = array_merge($pageTabs, [
|
||||
'organizer' => [
|
||||
'icon' => 'organizer',
|
||||
|
@ -286,6 +287,7 @@ class Template extends Smarty
|
|||
'text' => $lang_user['organizer'],
|
||||
'order' => 400,
|
||||
], ]);
|
||||
}
|
||||
|
||||
if ($groupRow['webdisk'] + $userRow['diskspace_add'] > 0) {
|
||||
$pageTabs = array_merge($pageTabs, [
|
||||
|
|
Loading…
Add table
Reference in a new issue