Beispiel #1
0
	public function canSubmit($userID = null)
	{
		$user = JFactory::getUser();

		if ($user->authorise('core.admin', 'com_judownload'))
		{
			return false;
		}

		return parent::canSubmit($userID);
	}
	public function canSubmit($userID = null)
	{
		$app = JFactory::getApplication();
		if ($app->isSite())
		{
			return false;
		}
		else
		{
			return parent::canSubmit($userID);
		}
	}