Skip to content
Snippets Groups Projects
Verified Commit 70fd5064 authored by Thomas Pathier's avatar Thomas Pathier Committed by Thomas Pathier
Browse files

Make getUserData return everything if nothing was passed

parent 922231a1
No related branches found
No related tags found
No related merge requests found
...@@ -133,10 +133,12 @@ class oAuth2{ ...@@ -133,10 +133,12 @@ class oAuth2{
exit; exit;
} }
function getUserData($value){ function getUserData($value = null){
if(is_null($value))
return $this->userData;
if(isset($this->userData[$value])) if(isset($this->userData[$value]))
return $this->userData[$value]; return $this->userData[$value];
return false; return null;
} }
function hasRole($role){ function hasRole($role){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment