Skip to content

RBAC with owner  #962

@4000D

Description

@4000D

🎉 Description

  • 🐛 This is a bug report.
  • 📈 This is a feature request.

📝 Details

Ownable controls ownership of contract. I think RBACWithOwner is suitable to control access controll with permission than RBACWithAdmin. RBACWithAdmin has several problems.

  1. It can't be integrated with Ownable becuase both control permissions. If we have a contract T is RBACWithAdmin, Ownable and a single admin added, and want to chagne owner, 3 transaction are required
contract.transferOwnership(newOwner, {from: owner});
contract.adminAddRole(newOwner, 'admin', {from: owner});
contract.adminRemoveRole(owner, 'admin', {from: owner});
  1. RBACWithAdmin may have no admin at all if admin send trancation
contract.adminRemoveRole(admin, 'admin', {from: admin});

I suggest to integrate Ownable with RBACWithAdmin to handle owner and ROLE_ADMIN at the same time, making sure that owner has all permission to control ROLE_ADMIN

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions