Hi there,
some time ago we wrote a little helping app, which worked fine.
After upgrading from NC 18 > 19, we got an issue with the current logged in user.
Working solution:
-
including the base.php (require_once(’…/lib/base.php’);).
-
getting the current user with admin privileges ($getusername = OCP\User::getUser();).
-
checked the user/group db and allowed the access.
Problem now:
- including the base.php now crashes the app (unlimited loading)
Question:
What’s the easiest way to simple get the current user name (display name) in PHP?
Sry for the (simple) question, but we stuck at the moment.
Thx, with best regards