Page MenuHomePhabricator

Disable Personal Herald rules H66, H236, H313 as the user currently cannot access Phab
Closed, ResolvedPublic

Event Timeline

Aklapper created this task.
Aklapper moved this task from To Triage to Herald rules on the Phabricator board.

Meh.

sudo /srv/phab/phabricator/bin/policy unlock --edit
throws
EXCEPTION: (Exception) Object edit policy can not be unlocked because this object does not have a mutable edit policy.

sudo /srv/phab/phabricator/bin/policy unlock --owner
(to temporarily become the rule owner, then disable the rule in the UI, then change the rule owner back via CLI) throws
EXCEPTION: (Exception) Object owner can not be unlocked: the unlocking engine ("PhabricatorDefaultUnlockEngine") for this object does not implement an owner unlocking mechanism.

I don't want to delete the rules either via sudo /srv/phab/phabricator/bin/remove destroy because why do that if the user might use them again later?

Is this really not possible?

Aklapper renamed this task from Disable Herald rules H66, H236, H313 to Disable Personal Herald rules H66, H236, H313 as the user currently cannot access Phab.Mar 27 2020, 10:02 AM

According to https://discourse.phabricator-community.org/t/herald-policy-setting-to-allow-users-to-view-but-only-admin-to-create-edit/2841/3, Herald rules can be disabled by running something like the following:

sudo /srv/phab/phabricator/bin/herald rule --disable --rule <rule number, eg. H66>

Aklapper claimed this task.