Condition for checking permission