Page MenuHomePhabricator

Remove redundant administrator requirement from application edit policy page
ClosedPublic

Authored by epriestley on Mar 21 2015, 12:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 11, 5:03 PM
Unknown Object (File)
Mar 4 2024, 10:26 PM
Unknown Object (File)
Feb 2 2024, 6:08 PM
Unknown Object (File)
Feb 1 2024, 4:36 AM
Unknown Object (File)
Jan 28 2024, 1:48 AM
Unknown Object (File)
Jan 11 2024, 12:51 PM
Unknown Object (File)
Jan 6 2024, 8:54 PM
Unknown Object (File)
Dec 28 2023, 10:00 PM
Subscribers

Details

Summary

Fixes T7485. Before applications had proper policies, we gated access by requiring the viewer be an administrator.

This is now redundant (CAN_EDIT on applications has the same effect, and performs the same check), and may some day be wrong (we might let administrators configure a different policy to control who can configure applications). Today, it gets the policy dialog wrong.

Test Plan

Clicked "Edit Policies" as a non-administrator, was unable to, got nice error:

Screen_Shot_2015-03-21_at_5.05.21_AM.png (1×1 px, 146 KB)

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Remove redundant administrator requirement from application edit policy page.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
src/applications/meta/controller/PhabricatorApplicationEditController.php
13–17

Specifically, this is the modern version of the check, which has the exact same effect.

btrahan edited edge metadata.
This revision is now accepted and ready to land.Mar 23 2015, 4:00 PM
This revision was automatically updated to reflect the committed changes.