Check privileges when necessary