Applied code styling
Centralised the code to check if a type of user is allowed.
Applied code styling
Use our new method
Merge pull request #45 from sumocoders/check-allowed-in-base-action

Check allowed in base action