Web extension DisableRequestAccess not working
luismanez opened this issue · comments
Luis Mañez commented
I want to disable "Allow Access requests" in Site sharing settings. I mean this in the UI:
There is a Web extension that should do the job (and worked in the past) but is not working now. This is the current code:
public static void DisableRequestAccess(this Web web)
{
web.RequestAccessEmail = string.Empty;
web.Update();
web.Context.ExecuteQueryRetry();
}
As per my tests now is not enough with setting an Empty email and an extra step is required.
I'm about to do a PR to fix it, but openning an issue first for traceability.