hello. try this. add this line to /etc/sudoers

%users localhost=NOPASSWD:/sbin/reboot, /sbin/poweroff
this makes possible to any user from the users group to invoke sudo reboot or sudo...