Page MenuHomePhabricator

Make event-triggered actions more aware of application access
ClosedPublic

Authored by epriestley on Oct 19 2013, 10:35 PM.
Tags
None
Referenced Files
F18088214: D7365.id16610.diff
Wed, Aug 6, 7:19 AM
F18084667: D7365.id.diff
Tue, Aug 5, 4:38 PM
F18060144: D7365.diff
Mon, Aug 4, 11:30 AM
F17948980: D7365.id16581.diff
Thu, Jul 31, 10:30 PM
F17948744: D7365.id16610.diff
Thu, Jul 31, 9:57 PM
F17947435: D7365.diff
Thu, Jul 31, 4:34 PM
F17850221: D7365.id16610.diff
Sun, Jul 27, 9:40 AM
Unknown Object (File)
Jun 2 2025, 5:05 AM
Subscribers

Details

Reviewers
btrahan
Maniphest Tasks
Restricted Maniphest Task
Commits
Restricted Diffusion Commit
rP8994a81b3538: Make event-triggered actions more aware of application access
Summary

Fixes T3675.

  • Maniphest had a couple of old non-event listeners; move them to events.
  • Make most of the similar listeners a little more similar.
  • Add checks for access to the application.
Test Plan
  • Viewed profile, project, task, revision.
  • Clicked all the actions.
  • Blocked access to various applications and verified the actions vanished.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

btrahan added inline comments.
src/applications/phriction/event/PhrictionActionMenuEventListener.php
18โ€“20

maybs this should be upgraded to some getObject?

It seems like that is standard-ish and then we get type checking which will give us other guarantees about object. Just maybs for someday thought

src/applications/phriction/event/PhrictionActionMenuEventListener.php
18โ€“20

Yeah, we could probably take a pass on PhabricatorEvent at some point and unify some of it. I'd guess getObject() is probably reasonable at a minimum.