Fix rest.pl permissions