Prevent git operations for inactive users (#13527) #13536

Merged
lunny merged 1 commits from lunny/inactive_user2 into release/v1.13 2020-11-13 01:28:32 +00:00
Owner

backport from #13527

  • prevent git operations for inactive users

  • Some fixes

  • Deny push to the repositories which's owner is inactive

  • deny operations also when user is ProhibitLogin

Co-authored-by: zeripath art27@cantab.net

Please check the following:

  1. Make sure you are targeting the master branch, pull requests on release branches are only allowed for bug fixes.
  2. Read contributing guidelines: https://github.com/go-gitea/gitea/blob/master/CONTRIBUTING.md
  3. Describe what your pull request does and which issue you're targeting (if any)

You MUST delete the content above including this line before posting, otherwise your pull request will be invalid.

backport from #13527 * prevent git operations for inactive users * Some fixes * Deny push to the repositories which's owner is inactive * deny operations also when user is ProhibitLogin Co-authored-by: zeripath <art27@cantab.net> Please check the following: 1. Make sure you are targeting the `master` branch, pull requests on release branches are only allowed for bug fixes. 2. Read contributing guidelines: https://github.com/go-gitea/gitea/blob/master/CONTRIBUTING.md 3. Describe what your pull request does and which issue you're targeting (if any) **You MUST delete the content above including this line before posting, otherwise your pull request will be invalid.**
6543 (Migrated from github.com) approved these changes 2020-11-13 01:24:30 +00:00
mrsdizzie (Migrated from github.com) approved these changes 2020-11-13 01:26:07 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: lunny/gitea#13536
No description provided.