* commit '64dc5b09f1d398541486dd7beb777c71c1a4f0ec': Restore calling identity before checking permission