openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 0f22696457f695b5194a1d9a7229001ddad9ae93
parent 56eb09aca458195c2755787a1bf498c4e2dbf0f4
Author: Jan Dankert <devnull@localhost>
Date:   Sat,  9 Dec 2017 23:28:22 +0100

Reparatur und Fixes in der UserAction.class.php

Diffstat:
action/StartAction.class.php | 3---
action/UserAction.class.php | 43++++++++++++++++++++++++++-----------------
2 files changed, 26 insertions(+), 20 deletions(-)

diff --git a/action/StartAction.class.php b/action/StartAction.class.php @@ -1697,10 +1697,7 @@ class StartAction extends Action $this->setTemplateVar('timeline', $result); } - - - } diff --git a/action/UserAction.class.php b/action/UserAction.class.php @@ -10,8 +10,8 @@ use cms\model\Object; use cms\model\Language; - - +use Http; +use security\Base2n; use \security\Password; use \Session; use \Html; @@ -49,7 +49,11 @@ class UserAction extends Action var $defaultSubAction = 'edit'; - function __construct() + /** + * UserAction constructor. + * @throws \ObjectNotFoundException + */ + function __construct() { $this->user = new User( $this->getRequestId() ); $this->user->load(); @@ -216,6 +220,7 @@ class UserAction extends Action foreach( User::getAllUsers() as $user ) { + /* @var $user User */ $list[$user->userid] = $user->getProperties(); $list[$user->userid]['url' ] = Html::url('main','user',$user->userid, array(REQ_PARAM_TARGETSUBACTION=>'edit') ); @@ -362,18 +367,20 @@ class UserAction extends Action } - /** - * Anzeigen der Benutzerrechte - */ + /** + * Anzeigen der Benutzerrechte + * @throws \ObjectNotFoundException + */ function rightsView() { - $rights = $this->user->getAllAcls(); + $rights = $this->user->getAllAcls(); - $projects = array(); - - foreach( $rights as $acl ) - { - if ( !isset($projects[$acl->projectid])) + $projects = array(); + + foreach( $rights as $acl ) + { + /* @var $acl Acl */ + if ( !isset($projects[$acl->projectid])) { $projects[$acl->projectid] = array(); $p = new Project($acl->projectid); @@ -416,7 +423,8 @@ class UserAction extends Action } else { - // Berechtigung f�r "alle". + ; + // Berechtigung fuer "alle". } // $show = array(); @@ -467,10 +475,11 @@ class UserAction extends Action return true; } - - /** - * Wechselt zu einem ausgewählten User. - */ + + /** + * Wechselt zu einem ausgewählten User. + * @throws \ObjectNotFoundException + */ public function switchPost() { // User laden...