add permission to some function