Fix endpoints to check if user is admin or not and then call the proper function for that permission
Fix endpoints to check if user is admin or not and then call the proper function for that permission