gitea/options/locale
zeripath 01c10a951b
Fix ssh deploy and user key constraints (#1357) (#5939)
1. A key can either be an ssh user key or a deploy key. It cannot be both.
2. If a key is a user key - it can only be associated with one user.
3. If a key is a deploy key - it can be used in multiple repositories and the permissions it has on those repositories can be different.
4. If a repository is deleted, its deploy keys must be deleted too.

We currently don't enforce any of this and multiple repositories access with different permissions doesn't work at all. This PR enforces the following constraints:

- [x] You should not be able to add the same user key as another user
- [x] You should not be able to add a ssh user key which is being used as a deploy key
- [x] You should not be able to add a ssh deploy key which is being used as a user key
- [x] If you add an ssh deploy key to another repository you should be able to use it in different modes without losing the ability to use it in the other mode.
- [x] If you delete a repository you must delete all its deploy keys.

Fix #1357
2019-02-03 23:56:53 +00:00
..
locale_bg-BG.ini
locale_cs-CZ.ini [skip ci] Updated translations via Crowdin 2019-01-28 15:55:40 +00:00
locale_de-DE.ini [skip ci] Updated translations via Crowdin 2019-01-29 21:28:45 +00:00
locale_en-US.ini Fix ssh deploy and user key constraints (#1357) (#5939) 2019-02-03 23:56:53 +00:00
locale_es-ES.ini
locale_fa-IR.ini
locale_fi-FI.ini
locale_fr-FR.ini [skip ci] Updated translations via Crowdin 2019-01-29 21:28:45 +00:00
locale_hu-HU.ini
locale_id-ID.ini
locale_it-IT.ini
locale_ja-JP.ini [skip ci] Updated translations via Crowdin 2019-01-31 13:39:54 +00:00
locale_ko-KR.ini
locale_lt-LT.ini
locale_lv-LV.ini [skip ci] Updated translations via Crowdin 2019-01-28 15:55:40 +00:00
locale_nb-NO.ini
locale_nl-NL.ini
locale_nn-NO.ini
locale_no-NO.ini
locale_pl-PL.ini
locale_pt-BR.ini [skip ci] Updated translations via Crowdin 2019-01-28 15:55:40 +00:00
locale_ru-RU.ini
locale_ru-UA.ini
locale_sr-SP.ini
locale_sv-SE.ini
locale_tr-TR.ini
locale_uk-UA.ini
locale_vi-VN.ini
locale_zh-CN.ini [skip ci] Updated translations via Crowdin 2019-01-28 15:55:40 +00:00
locale_zh-HK.ini
locale_zh-TW.ini
TRANSLATORS