CF-370 adding checkpermission method