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:
@@ -21,8 +21,9 @@ CreateThread::CreateThread()
|
||||
|
||||
|
||||
|
||||
|
||||
// returning true if we can create a thread in the current directory
|
||||
bool CreateThread::HasAccess()
|
||||
bool CreateThread::HasAccess(bool check_root)
|
||||
{
|
||||
if( request->dir_tab.empty() )
|
||||
return false;
|
||||
@@ -36,7 +37,7 @@ bool CreateThread::HasAccess()
|
||||
if( !system->mounts.pmount || system->mounts.pmount->type != Mount::thread )
|
||||
return false;
|
||||
|
||||
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 thread regardless of the restrictcreatethread option
|
||||
return true;
|
||||
|
||||
@@ -50,6 +51,11 @@ return false;
|
||||
}
|
||||
|
||||
|
||||
bool CreateThread::HasAccess()
|
||||
{
|
||||
return HasAccess(false);
|
||||
}
|
||||
|
||||
|
||||
bool CreateThread::FunCreateThreadCheckAbuse()
|
||||
{
|
||||
|
@@ -23,6 +23,7 @@ class CreateThread : public FunctionBase
|
||||
public:
|
||||
|
||||
CreateThread();
|
||||
bool HasAccess(bool check_root);
|
||||
bool HasAccess();
|
||||
void MakePost();
|
||||
|
||||
|
@@ -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()
|
||||
{
|
||||
|
@@ -24,6 +24,7 @@ public:
|
||||
|
||||
CreateTicket();
|
||||
void Clear();
|
||||
bool HasAccess(bool check_root);
|
||||
bool HasAccess();
|
||||
void MakePost();
|
||||
|
||||
|
Reference in New Issue
Block a user