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
F14041300: D8298.diff
Mon, Nov 11, 5:20 PM
F14038520: D8298.id19742.diff
Mon, Nov 11, 12:09 AM
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

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

Repository
rP Phabricator
Branch
T4354
Lint
Lint Errors
SeverityLocationCodeMessage
Errorsrc/infrastructure/util/password/PhabricatorBcryptPasswordHasher.php:41PHL1Unknown Symbol
Errorsrc/infrastructure/util/password/PhabricatorBcryptPasswordHasher.php:49PHL1Unknown Symbol
Errorsrc/infrastructure/util/password/PhabricatorBcryptPasswordHasher.php:53PHL1Unknown Symbol
Unit
No Test Coverage

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