Added error message when accessing admin functions without admin permissions.