Added checkPermission() with message