public function setPermissionResource(int $id, int $value): void
	{
		if ($this->isAjax()) {
			$acl = $this->orm->acl->getById($id);
			$acl->resource = $value;
			$this->orm->persistAndFlush($acl);

			$this->flashNotifier->success('default.dataSaved');

			$this['permissionsList']->redrawItem($id);
		} else {
			$this->terminate();
		}
	}
public function setPermissionResource(int $id, int $value): void
	{
		if ($this->isAjax()) {
			$acl = $this->orm->acl->getById($id);
			$acl->resource = $value;
			$this->orm->persistAndFlush($acl);

			$this->flashNotifier->success('default.dataSaved');

			$this['permissionsList']->redrawItem($id);
		} else {
			$this->terminate();
		}
	}
public function setPermissionResource ( int $ id , int $ value ) : void { if ( $ this -> isAjax ( ) ) { $ acl = $ this -> orm -> acl -> getById ( $ id ) ; $ acl -> resource = $ value ; $ this -> orm -> persistAndFlush ( $ acl ) ; $ this -> flashNotifier -> success ( 'default.dataSaved' ) ; $ this [ 'permissionsList' ] -> redrawItem ( $ id ) ; } else { $ this -> terminate ( ) ; } }
Nastavi zdroj pravidlu
@param int $id
@param int $value
@throws AbortException
Nastavi zdroj pravidlu