Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #3769

Closed
Open
Created Apr 29, 2013 by Administrator@rootOwner

creating a guest user ended up creating an admin user

Created by: gmsharky

One of our users (an admin of a team) added a user to his team as type Guest. I then explained that guests couldn't clone and he changed him to reporter. In the process of doing this, Gitlab reported a 500, and on investigating the user they were actually added as a Guest, but with Administrator ticked.

Here is (I believe) the associated server error

  Parameters: {"utf8"=>"✓", "authenticity_token"=>"ZU9CY......cdaZgG8=", "team_member"=>{"permission"=>"20", "group_admin"=>"0"}, "team_id"=>"some-team", "id"=>"fred.smith"}
Completed 500 Internal Server Error in 18ms

ArgumentError (wrong number of arguments (3 for 4)):
  lib/gitlab/user_team_manager.rb:78:in `update_team_user_access_in_project'
  lib/gitlab/user_team_manager.rb:67:in `block in rebuild_project_permissions_to_member'
  lib/gitlab/user_team_manager.rb:66:in `rebuild_project_permissions_to_member'
  lib/gitlab/user_team_manager.rb:40:in `update_team_user_membership'
  app/models/user_team.rb:90:in `update_membership'
  app/controllers/teams/members_controller.rb:37:in `update'

I am running commit version 951273ff

Assignee
Assign to
Time tracking