How to make it controlled by a single user without the need to vote?

This does not work in a template (it reverts):

        //_acl.createPermission(_grantee, _app, _app.JUDGE_ROLE(), _manager);
        if (_soleController != 0x0) {
              _acl.createPermission(_soleController, _app, _app.JUDGE_ROLE(), _manager);
        }

I am trying to give permission to vote and (for debugging purposes) also unlimited permissions for a single Ethereum address _soleController. How to make it controlled by a single user without the need to vote?

_manager is a voting manager.

The template is available at https://github.com/vporton/courts/blob/8bc7f5d4294ec3ebd1ca4b220ae6919c382d5c09/contracts/Template.sol

Hi @vporton, thanks for your question. If it’s only for debugging purposes, I would suggest removing the condition and simply giving permission to the msg.sender:

_acl.createPermission(msg.sender, _app, _app. JUDGE_ROLE(), msg.sender);

Don’t hesitate to reach out to me in the chat if you have more questions :slight_smile:

1 Like

Solved in the Aragon chat