code icon indicating copy to clipboard operation
code copied to clipboard

Unable to edit project member

Open EgorBron opened this issue 1 year ago • 5 comments

Describe the bug

When trying to edit permissions, revenue or role of any invited member in project, Modrinth says that An error occurred Authentication Error: You cannot override the project permissions of the organization owner!.

Steps to reproduce

  1. Open the Project settings
  2. Go to the Members page
  3. Open any member options
  4. Select some permissions, or change role name, or edit revenue percentage
  5. Click on Save changes
  6. Get an error: An error occurred Authentication Error: You cannot override the project permissions of the organization owner!

Error when editing member in project

The same error still appears when I edit organization member, not just a project member.

Editing organization member in project

Expected behavior

The changes that I did are applied to the member.

Additional context

I'm tried to edit permissions on a project that:

  • currently is draft
  • belongs to organization

When I just invite member to my organization and edit global permissions, everything works fine. Also, when I edit myself in Members page, all changes are successfully applied.

Editing organization member

EgorBron avatar Feb 23 '24 11:02 EgorBron

Can you confirm if this is still happening?

Prospector avatar Apr 14 '24 21:04 Prospector

Can you confirm if this is still happening?

Just checked it, and yes, but only to project members (on screenshot I tried to add my alt account). After clicking Save it throws 401 Unauthorized. issue

With an organization member as the project member it works fine.

I also noticed that the Members page takes a long time to load the first time.

EgorBron avatar Apr 15 '24 05:04 EgorBron

Not sure if it's the same exact cause, but I also consistently run into this with projects that I transfered from a user account to an organization, making the org pretty much unusable for existing projects. It doesn't happen when editing organization members though, just when editing them within the org's projects

kennytv avatar Aug 10 '24 10:08 kennytv

Can confirm this is still the case (for the project members). It's been causing the WispForest org problems

Minenash avatar Aug 29 '24 05:08 Minenash

I can also confirm this is still happening. For organization overrides this you can workaround it by removing the override, and then re-adding it, but for individual project invites this seems like a major issue. I'm unable to invite someome to a project and give them permissions or change their role name...

misode avatar Sep 23 '24 00:09 misode

Upd: seems that this issue is partially fixed. When you toggle "Override values" switch, you can edit the member's role and permissions, but only once. Re-toggling this switch allows to edit the values again.

EgorBron avatar Jan 12 '25 11:01 EgorBron

I still have this issue, and it is substantially worse as I cannot change anything on the members page (other than inviting someone)

Modog500000 avatar Apr 04 '25 03:04 Modog500000