Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restricted users #6274

Merged
merged 23 commits into from
Jan 13, 2020
Merged

Restricted users #6274

merged 23 commits into from
Jan 13, 2020

Commits on Jan 6, 2020

  1. Restricted users (go-gitea#4334): initial implementation

    * Add User.IsRestricted & UI to edit it
    
    * Pass user object instead of user id to places where IsRestricted flag matters
    
    * Restricted users: maintain access rows for all referenced repos (incl public)
    
    * Take logged in user & IsRestricted flag into account in org/repo listings, searches and accesses
    
    * Add basic repo access tests for restricted users
    
    Signed-off-by: Manush Dodunekov <[email protected]>
    mnsh committed Jan 6, 2020
    Configuration menu
    Copy the full SHA
    836f9d8 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2020

  1. Configuration menu
    Copy the full SHA
    1f7b0fc View commit details
    Browse the repository at this point in the history
  2. Mention restricted users in the faq

    Signed-off-by: Manush Dodunekov <[email protected]>
    mnsh committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    dc7e423 View commit details
    Browse the repository at this point in the history
  3. Revert unnecessary change .isUserPartOfOrg -> .IsUserPartOfOrg

    Signed-off-by: Manush Dodunekov <[email protected]>
    mnsh committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    4501f22 View commit details
    Browse the repository at this point in the history
  4. Remove unnecessary org.IsOrganization() call

    Signed-off-by: Manush Dodunekov <[email protected]>
    mnsh committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    5b65242 View commit details
    Browse the repository at this point in the history
  5. Revert to an int64 keyed accessMap

    * Add type `userAccess`
    * Add convenience func updateUserAccess()
    * Turn accessMap into a `map[int64]userAccess`
    
    Signed-off-by: Manush Dodunekov <[email protected]>
    mnsh committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    124f056 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    06ad61a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    10de9b6 View commit details
    Browse the repository at this point in the history
  8. even tighter

    mnsh committed Jan 8, 2020
    Configuration menu
    Copy the full SHA
    7d17aad View commit details
    Browse the repository at this point in the history

Commits on Jan 9, 2020

  1. Avoid extra loop

    mnsh committed Jan 9, 2020
    Configuration menu
    Copy the full SHA
    7d74b85 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3459547 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b788ef3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ee2f31f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    eeecdab View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2020

  1. merge upstream & fix conflicts

    mnsh committed Jan 10, 2020
    Configuration menu
    Copy the full SHA
    57744b5 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2020

  1. fix yet another thinko

    mnsh committed Jan 11, 2020
    Configuration menu
    Copy the full SHA
    d775c3b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5ae6016 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2020

  1. Merge master & resolve conflicts

    mnsh committed Jan 12, 2020
    Configuration menu
    Copy the full SHA
    095bfa6 View commit details
    Browse the repository at this point in the history
  2. Ok - no need for u

    mnsh committed Jan 12, 2020
    Configuration menu
    Copy the full SHA
    5c3e886 View commit details
    Browse the repository at this point in the history
  3. Revert "Ok - no need for u"

    This reverts commit 5c3e886.
    mnsh committed Jan 12, 2020
    Configuration menu
    Copy the full SHA
    95bca8e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    79c456e View commit details
    Browse the repository at this point in the history

Commits on Jan 13, 2020

  1. Configuration menu
    Copy the full SHA
    eaed6b3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a54d9d6 View commit details
    Browse the repository at this point in the history