PermissionHandler check method added (including tests)