✨ Administration Area #116
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Is your feature request related to a problem? Please describe.
Admins need to be able to view, open, close, assign and update tickets
Describe the solution you'd like
A dashboard similar to the main app designed for admins. Possible in /admin/
Describe alternatives you've considered
Admins access the ticket in phpnyadmin
Branch 116 created!
@luketainton how do we know the user is admin? I can't find anything in the db. Is it set in Keycloak?
Right now there's nothing to dictate their role - we could have Keycloak push it down through roles, which is probably better than storing it in a db
What if we had keycloak push it down then it gets stored/updated in the DB upon login? That would make the code i have just written work
Keycloak is now configured to push an attribute called
roles, which will be set to eitheradmin,agent, oruserdepending on the desired functionality for the user.I will update the db(s) and creation script. Then update my code accordingly. Also, I was thinking admin and agent are the same thing?
OK, I'll remove
admin. The functions in app_functions.php also need to be updated to a) get the role from KC, and b) save it in the sessionThis issue has been marked as stale due to inactivity. If this issue is still ongoing, please leave a comment.