function to check action permissions added