首页 文章

修复Phabricator中无效/损坏的项目策略

提问于
浏览
1

我以某种方式导致在Phabricator中创建的项目有一个编辑策略,阻止我管理成员资格或进行任何其他更改 .

项目历史如下:

  • <myusername> 创建了这个项目

  • <myusername> 添加了成员: <myusername>

  • <myusername> 将可见性从"All Users"更改为"Subscribers"

  • <myusername> 将编辑策略从"All Users"更改为"Subscribers"

  • <myusername> 将联接政策从"All Users"更改为"Subscribers"

  • <myusername> 已添加成员: <memberA><memberB><memberC><memberD>

  • <myusername> 将可见性从"Subscribers"更改为“ <ProjectName> (项目)”

最终结果是我现在无法以任何方式添加成员或编辑项目 .

数据库格式无法快速识别 . 我正在挖掘资源,但想知道其他人是否已经通过这个 .

是否有一些查看/编辑Phabricator ACL的标准方法?我正在审查文档,但信息很少 .

感谢任何见解!

1 回答

  • 2

    您需要使用 ~/phabricator/bin/policy 解锁对象:

    NAME
        policy - manage policies
    
    SYNOPSIS
        policy command [options]
            Administrative tool for reviewing and editing policies.
    
    
    WORKFLOWS
    
        help [command]
        Show this help, or workflow help for command.
    
        show D123
        Show policy information about an object.
    
        unlock D123
        Unlock an object by setting its policies to allow anyone to view and
        edit it.
    
    
    Use help command for a detailed command reference.
    Use --show-standard-options to show additional options.
    

    要获取项目的PHID,请使用名为 phid.lookup 的Conduit方法:

    https://<phabricator-URI>/conduit/method/phid.lookup/
    enter image description here

    enter image description here

    现在您可以像这样使用PHID: ~> ./bin/policy show PHID-PROJ-mwyszvfopzei2xfnncda

相关问题