Correct permission check