diff options
Diffstat (limited to 'app/class/framework.class.php')
-rw-r--r-- | app/class/framework.class.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/class/framework.class.php b/app/class/framework.class.php index 74c4b14..4223d68 100644 --- a/app/class/framework.class.php +++ b/app/class/framework.class.php @@ -57,7 +57,14 @@ abstract class Framework function getCurrentUser() { if (isset($_SESSION['userguid'])) - return new User($_SESSION['userguid']); + { + $user = new User($_SESSION['userguid']); + + if ($user->type == "user") + return $user; + + $this->setCurrentUser(); + } return false; } |