Currently, when an organization is created, the user is added as a member, but doesn't get any permissions in the organization.
To change that, the Organizations::CreateService should create an OrganizationRole with the :assign_role_abilities ability and the member should be added to this role.
Currently, when an organization is created, the user is added as a member, but doesn't get any permissions in the organization.
To change that, the
Organizations::CreateService
should create anOrganizationRole
with the:assign_role_abilities
ability and the member should be added to this role.https://github.com/code0-tech/sagittarius/blob/main/app/services/organizations/create_service.rb