robjingram

I would have thought that it would return the public URL, which wouldn’t include .protected. Protected files are served by a PHP request rather than directly by the web server

robjingram

For reference in case anybody else has to do the same thing, something along the lines of:

  1. $folder->CanViewType = InheritedPermissions::ONLY_THESE_USERS;
  2. $folder->ViewerGroups()->add($adminGroup);

Where $adminGroup is the Group object for Administrators (in this case).

👍 (1)
robjingram

Is there a guide anywhere to setting Folder permissions programatically? I.e. how do I do the below in code?

robjingram

The documentor error is similar. It complains that the return types should implement an interface but it is getting null

robjingram

Anyone finding that invalid @return types in doc blocks are breaking the PHP language server in VScode? I think the PHP documentor crashes on return types such as File[]

robjingram

So most of what I’ve done this afternoon wasn’t required.

robjingram

And when that URL is properly formed the interstitial logout form isn’t displayed.

robjingram

Just noticed that the back URL is probably not being set because the URL we’re building is malformed. It has two ? characters since the security ID is being added by SS too.

robjingram

That’s currently working and since it is in a LogoutHandler I assume it won’t leak into any other uses of getBackURL.