This PR fixes an issue for DAOs with multiple groups in their policy.
Previously only the group with index 1 has been checked. There was also no check whether the permission for that group has been granted.
The bug has been fixed by looping through all groups and checking whether the permission exists.
This PR fixes an issue for DAOs with multiple groups in their policy. Previously only the group with index 1 has been checked. There was also no check whether the permission for that group has been granted.
The bug has been fixed by looping through all groups and checking whether the permission exists.