Skip to content

Editing user permissions copies team permissions directly to the user. #758

Closed

Description

@gitblit

Originally reported on Google Code with ID 462

What steps will reproduce the problem?
1. Create a user with no repository permissions
2. Create a team and add the user to that team as well as set permissions to a repository.
3. Edit the user settings and click save (no changes are required)
4. go back in and edit the user and view the access permissions

What is the expected output? What do you see instead?
The access permissions under "mutable" tab should be empty, but instead shows the repositories
defined on the team ("effective" tab).

What version of the product are you using? On what operating system?
1.6.0

Please provide any additional information below.

It appears that the "Effective" tab controls are setup to be posted with the form submissions
(which they should not be) thus causing those entries to be added directly to the users
permissions.    This can cause issues if you later revoke permissions from a user via
team membership, as the permissions were copied locally.


Reported by urkle@outoforder.cc on 2014-07-14 16:47:44

Activity

  1. gitblit commented on Aug 12, 2015

    @gitblit
    CollaboratorAuthor
    Any update on this issue?  it's really becoming an issue, as I have to continually edit
    users multiple times to cleanup incorrectly added permissions.  This really is a security
    issue in gitblit.   If you can suggest where in the code I can look through to cleanly
    make these modifications I'd be more than happy to provide a patch.
    

    Reported by edward@humblebundle.com on 2014-08-08 13:00:41

  2. self-assigned this
    on Aug 12, 2015
  3. gitblit commented on Aug 12, 2015

    @gitblit
    CollaboratorAuthor

    Reported by James.Moger on 2014-10-24 12:11:36

    • Status changed: Accepted
  4. gitblit commented on Aug 12, 2015

    @gitblit
    CollaboratorAuthor
    Fix pushed to develop.
    

    Reported by James.Moger on 2014-10-31 13:53:55

    • Status changed: Queued
    • Labels added: Milestone-1.7.0
  5. added this to the 1.7.0 milestone on Dec 13, 2016
  6. added and removed
    Status-ObsoleteIssue has been obsoleted by code changes or become irrelevant or stale
    on Dec 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions