public function setPermissionPrivilege(int $id, string $value): void
	{
		if ($this->isAjax()) {
			$permission = $this->orm->acl->getById($id);
			$permission->privilege = $value;
			$this->orm->persistAndFlush($permission);

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

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

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

			$this['permissionsList']->redrawItem($id);
		} else {
			$this->terminate();
		}
	}
public function setPermissionPrivilege ( int $ id , string $ value ) : void { if ( $ this -> isAjax ( ) ) { $ permission = $ this -> orm -> acl -> getById ( $ id ) ; $ permission -> privilege = $ value ; $ this -> orm -> persistAndFlush ( $ permission ) ; $ this -> flashNotifier -> success ( 'default.dataSaved' ) ; $ this [ 'permissionsList' ] -> redrawItem ( $ id ) ; } else { $ this -> terminate ( ) ; } }
Ulozi operaci pravidla
@param int $id
@param string $value
@throws AbortException
Ulozi operaci pravidla