set perms on plugin