2009-01-26 21:49:28 +01:00
|
|
|
/*
|
|
|
|
* This file is a part of CMSLU -- Content Management System like Unix
|
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
2009-04-21 22:50:55 +02:00
|
|
|
* Copyright (c) 2008-2009, Tomasz Sowa
|
2009-01-26 21:49:28 +01:00
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "content.h"
|
2009-04-21 22:50:55 +02:00
|
|
|
#include "../core/request.h"
|
|
|
|
#include "../core/error.h"
|
2009-01-26 21:49:28 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void Content::FunRun()
|
|
|
|
{
|
|
|
|
if( !request.is_item )
|
|
|
|
{
|
|
|
|
log << log1 << "Content: Run function requires an item" << logend;
|
|
|
|
request.status = Error::item_required;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if( !request.HasReadExecAccess(request.item) )
|
|
|
|
{
|
|
|
|
request.status = Error::permision_denied;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|