fix permissionlessJoin bug

main
cyl19970726 2 years ago
parent 22d19ea1fb
commit df50b32098

@ -108,7 +108,7 @@ contract Hubv3 is AccessControl, Initializable {
// permissionlessJoin can be invoked by everyone who want to join this hub
function permissionlessJoin() public {
require(permissionless, "permissionless join no open");
grantRole(CONTRIBUTOR, _msgSender());
_setupRole(CONTRIBUTOR, _msgSender());
}
// ===== repository operator functions======

Loading…
Cancel
Save