added: plugins_dir to config
small changes in makefiles git-svn-id: svn://ttmath.org/publicrep/winix/trunk@643 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -27,7 +27,7 @@ void CreateTicket::Clear()
|
||||
}
|
||||
|
||||
// returning true if we can create a ticket in the current directory
|
||||
bool CreateTicket::HasAccess()
|
||||
bool CreateTicket::HasAccess(bool check_root)
|
||||
{
|
||||
if( request->dir_tab.empty() )
|
||||
return false;
|
||||
@@ -44,7 +44,7 @@ bool CreateTicket::HasAccess()
|
||||
|
||||
// checking for par_createticket_on mount option
|
||||
|
||||
if( request->session && request->session->puser && request->session->puser->super_user )
|
||||
if( !check_root && request->session && request->session->puser && request->session->puser->super_user )
|
||||
// super can create tickets regardless of the createticket_on option
|
||||
return true;
|
||||
|
||||
@@ -58,7 +58,10 @@ return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
bool CreateTicket::HasAccess()
|
||||
{
|
||||
return HasAccess(false);
|
||||
}
|
||||
|
||||
bool CreateTicket::FunCreateTicketCheckAbuse()
|
||||
{
|
||||
|
Reference in New Issue
Block a user