set plugin permissions.