I’m trying to get the current admin user in my view to set custom CKE settings if the user is not an admin.
I found several other projects that use the following:
$currentUser = \Pimcore\Tool\Admin::getCurrentUser();
But for me this is always null. Therefor my question is:
How do I get the current admin user in a view?
Or is there a smarter way to set custom cke settings to a certain user role?
Thanks a lot!