diff options
author | bayangan1991 <ryan.bayangan@gmail.com> | 2018-03-08 23:11:34 +1100 |
---|---|---|
committer | jc <u@gogs.io> | 2018-03-08 07:11:34 -0500 |
commit | 51e087fd8731137c969f616bc90f383a2c2bff27 (patch) | |
tree | c8019a214d0c5708070f16ecef2a273f4c4e217c /models/errors/repo.go | |
parent | 679147cd5d9d3184e32849512a8c2cd616074244 (diff) |
repo: disallow web ui to delete protected branch after PR merged (#4803)
* Disallow web ui to delete protected branch
* Fix for branches not yet protected
Had to change how error was handled. If a branch had not yet been protected the error would be generated.
Reworked to start as false and then use the protected if it was found.
Diffstat (limited to 'models/errors/repo.go')
0 files changed, 0 insertions, 0 deletions