diff options
author | Philip Häusler <msquare@notrademark.de> | 2014-03-09 16:00:13 +0100 |
---|---|---|
committer | Philip Häusler <msquare@notrademark.de> | 2014-03-09 16:00:13 +0100 |
commit | ab450600d76f79190b956f7f74cbc6a04ebcdf71 (patch) | |
tree | 892ef48ae03d0c2213108c0e7c82ba6af043658d /includes/controller | |
parent | f40b78faace47a564e0efbc613fac85b69ed8b3a (diff) |
better integration of angeltypes about
Diffstat (limited to 'includes/controller')
-rw-r--r-- | includes/controller/angeltypes_controller.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/includes/controller/angeltypes_controller.php b/includes/controller/angeltypes_controller.php index 7566a80e..474540d6 100644 --- a/includes/controller/angeltypes_controller.php +++ b/includes/controller/angeltypes_controller.php @@ -44,13 +44,16 @@ function angeltypes_controller() { function angeltypes_about_controller() { global $privileges, $user; - $angeltypes = AngelTypes(); + if (isset($user)) + $angeltypes = AngelTypes_with_user($user); + else + $angeltypes = AngelTypes(); if ($angeltypes === false) engelsystem_error("Unable to load angeltypes."); return array( - _("Teams/Engeltypes description"), - AngelTypes_about_view($angeltypes) + _("Teams/Job description"), + AngelTypes_about_view($angeltypes, isset($user)) ); } |