Page MenuHomePhabricator

Hide upload JS stuff if user isn't logged in
ClosedPublic

Authored by btrahan on Feb 21 2014, 8:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, May 8, 6:08 AM
Unknown Object (File)
Thu, May 8, 6:08 AM
Unknown Object (File)
Thu, May 8, 6:08 AM
Unknown Object (File)
Mon, May 5, 6:06 AM
Unknown Object (File)
Tue, Apr 29, 6:06 PM
Unknown Object (File)
Fri, Apr 25, 10:43 PM
Unknown Object (File)
Apr 20 2025, 1:08 PM
Unknown Object (File)
Apr 13 2025, 8:53 AM

Details

Summary

...cuz it won't work. I think adding a "login to upload" has no real value as this is a pretty unexpected / power user feature anyway. Fixes T4354.

Test Plan

tried to upload as a logged out user to Phabricator home. my browser just loaded the file as expected.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

(AphrontView already has setUser(), which you could reuse. It might be nice to rename that to setViewer() some day but it would be a lot of work.)

I think adding a "login to upload" has no real value as this is a pretty unexpected / power user feature anyway.

Yep, agreed.

btrahan updated this revision to Unknown Object (????).Feb 21 2014, 9:03 PM

using setUser and dropping new setViewer methods

what cache do i need to invalidate to stop this lint error? I forgot :(

I think it's:

  • Update arcanist/ if you haven't;
  • nuke src/.phutil_module_cache from phabricator/.

thanks - hadn't done the second step yet