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
F14033385: D8298.id19742.diff
Sat, Nov 9, 5:35 PM
F14033077: D8298.id19742.diff
Sat, Nov 9, 4:36 PM
F14030342: D8298.diff
Sat, Nov 9, 2:45 AM
F14028420: D8298.id19742.diff
Fri, Nov 8, 1:11 PM
F14026649: D8298.diff
Fri, Nov 8, 1:53 AM
F14013266: D8298.id19742.diff
Sat, Nov 2, 3:19 AM
F14011274: D8298.id19741.diff
Thu, Oct 31, 10:28 PM
F14011273: D8298.id19736.diff
Thu, Oct 31, 10:28 PM

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