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
F17921353: D8298.id19736.diff
Wed, Jul 30, 5:11 AM
F17909081: D8298.id19742.diff
Tue, Jul 29, 2:10 PM
F17908567: D8298.id19736.diff
Tue, Jul 29, 1:53 PM
F17851202: D8298.id19741.diff
Sun, Jul 27, 10:59 AM
F17844360: D8298.diff
Sun, Jul 27, 2:01 AM
F17783811: D8298.diff
Thu, Jul 24, 11:02 AM
Unknown Object (File)
Jun 19 2025, 2:32 AM
Unknown Object (File)
Jun 16 2025, 4:30 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

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