The setpermissions widget can actually be reused to do the permission settings.