The allPermissions method returns the complete list of permissions assigned to the currently logged-in user. If the user is not logged in, all values will be false.
As a best practice, authorization checks for sensitive actions should also occur on the backend.