File modules/cms/action/pageelement/PageelementPubAction.class.php
Last commit: Sat Oct 17 02:16:28 2026 +0200 Jan Dankert Refactoring: Removed empty view() and post() methods; OpenAPI cleanup, removed these unused paths.
1 <?php 2 namespace cms\action\pageelement; 3 use cms\action\Method; 4 use cms\action\PageelementAction; 5 use cms\model\Permission; 6 use util\exception\SecurityException; 7 8 class PageelementPubAction extends PageelementAction implements Method { 9 10 protected function getRequiredPagePermission() 11 { 12 return Permission::ACL_PUBLISH; 13 } 14 15 16 public function post() { 17 if ( !$this->page->hasRight( Permission::ACL_PUBLISH ) ) 18 throw new SecurityException( 'no right for publish' ); 19 20 $this->publishPage(); 21 } 22 }
Downloadmodules/cms/action/pageelement/PageelementPubAction.class.php
History Sat, 17 Oct 2026 02:16:28 +0200 Jan Dankert Refactoring: Removed empty view() and post() methods; OpenAPI cleanup, removed these unused paths. Sat, 6 Mar 2021 03:42:38 +0100 Jan Dankert New: Better permission checks. Mon, 4 Jan 2021 19:03:18 +0100 Jan Dankert Refactoring: ACL class is renamed to Permission, because most RBAC/DMAC concepts are calling it a permission. Tue, 17 Nov 2020 23:51:00 +0100 Jan Dankert Refactoring: Every Actionmethod has now its own class.