I am using dokuwiki for an intranet on one of the sites I am maintaining. I wanted to disable certain buttons for users who are not administrators, like the profile and the revision buttons. It was for me not easy to find. Hence I am posting it here. The way I did it was editing the following in the main.php of the template:
if ($INFO['isadmin']) tpl_button('history');
Maybe other developers can use this.