Checking permission.