File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -63,17 +63,20 @@ public function getTitleDetails(): string
6363 public function display (): string
6464 {
6565 if ($ this ->auth ->loggedIn ()) {
66- $ user = $ this ->auth ->user ();
67- $ groups = $ user ->getGroups ();
66+ $ user = $ this ->auth ->user ();
67+ $ groups = $ user ->getGroups ();
68+ $ permissions = $ user ->getPermissions ();
6869
69- $ groupsForUser = implode (', ' , $ groups );
70+ $ groupsForUser = implode (', ' , $ groups );
71+ $ permissionsForUser = implode (', ' , $ permissions );
7072
7173 $ html = '<h3>Current User</h3> ' ;
7274 $ html .= '<table><tbody> ' ;
7375 $ html .= "<tr><td style='width:150px;'>User ID</td><td># {$ user ->id }</td></tr> " ;
7476 $ html .= "<tr><td>Username</td><td> {$ user ->username }</td></tr> " ;
7577 $ html .= "<tr><td>Email</td><td> {$ user ->email }</td></tr> " ;
7678 $ html .= "<tr><td>Groups</td><td> {$ groupsForUser }</td></tr> " ;
79+ $ html .= "<tr><td>Permissions</td><td> {$ permissionsForUser }</td></tr> " ;
7780 $ html .= '</tbody></table> ' ;
7881 } else {
7982 $ html = '<p>Not logged in.</p> ' ;
You can’t perform that action at this time.
0 commit comments