Fixed admin rights checking