Your IP : 18.188.100.195


Current Path : /var/www/axolotl/data/www/murmansk.axolotls.ru/bitrix/modules/lists/lib/controller/
Upload File :
Current File : /var/www/axolotl/data/www/murmansk.axolotls.ru/bitrix/modules/lists/lib/controller/lock.php

<?php
namespace Bitrix\Lists\Controller;

use Bitrix\Lists\Security\ElementRight;

class Lock extends Element
{
	public function lockAction()
	{
		$param = $this->getParamFromRequest();
		$params = $param->getParams();

		$this->checkPermission($param, ElementRight::EDIT);
		if ($this->getErrors())
		{
			$this->addErrors($this->getErrors());
			return null;
		}

		\CIBlockElement::WF_Lock($params["ELEMENT_ID"], false);
	}

	public function unLockAction()
	{
		$param = $this->getParamFromRequest();
		$params = $param->getParams();

		$this->checkPermission($param, ElementRight::EDIT);
		if ($this->getErrors())
		{
			$this->addErrors($this->getErrors());
			return null;
		}

		\CIBlockElement::WF_UnLock($params["ELEMENT_ID"], false);
	}
}