Commit graph

3693 commits

Author SHA1 Message Date
Alexandre Aubin
ec5069b71c Propagate changes on backup tests + fixes bugs found in the process 2019-09-13 16:33:25 +02:00
Alexandre Aubin
bdad4ffd71 c.f. issue 1405 ... those 'if ldap.stuff()' are complete bullshit from the very beginning since they never return False : instead they trigger an exception which means the current error management is completely meaningless ... so this refactorize all the places if found those + add proper error messages 2019-09-13 16:33:03 +02:00
Alexandre Aubin
2e14834e6b Misc fixes following tests 2019-09-13 16:33:03 +02:00
Alexandre Aubin
b912cd0aec Propagate all changes to tests 2019-09-13 16:33:03 +02:00
Alexandre Aubin
fe8f7f2210 Update permission helper : have a single helper to manage urls, and a helper to add/remove groups to permission 2019-09-13 16:33:03 +02:00
Alexandre Aubin
68db93cd63 Fix an issue about groups not being properly cleaned and perms synced when deleting a user 2019-09-13 16:33:03 +02:00
Alexandre Aubin
f1f6513796 Small tweaks for user group tests 2019-09-13 16:33:03 +02:00
Alexandre Aubin
c0361430e2 Try to simplify + comment the code of check_LDAP_db_integrity 2019-09-13 16:33:03 +02:00
Alexandre Aubin
e40698ef20 Propagate changes on migration 2019-09-13 16:33:03 +02:00
Alexandre Aubin
bbfc62cf3e Backup/restore app permissions using yaml files which are much simpler to handle... 2019-09-13 16:32:32 +02:00
Alexandre Aubin
a92ff53077 Propagate changes to other parts of the code relying on groups and permissions 2019-09-13 16:32:32 +02:00
Alexandre Aubin
d5b2fb7a71 Misc fixes/improvements for i18n strings 2019-09-13 16:32:32 +02:00
Alexandre Aubin
38c43f4b9a Fix the whole operation logger / related to thing + propagate on the legacy addaccess 2019-09-13 16:31:03 +02:00
Alexandre Aubin
98b1c30330 Simplify app_ssowatconf code related to permissions 2019-09-13 16:31:03 +02:00
Alexandre Aubin
853c6a161a Simplify permission_sync_to_user ... force is never set to True so I dropped it... 2019-09-13 16:31:03 +02:00
Alexandre Aubin
574e9aea44 Simplify permission_create/urls/delete interface and code 2019-09-13 16:31:03 +02:00
Alexandre Aubin
3535cb655f Fix call of app add/remove access hooks 2019-09-13 16:31:03 +02:00
Alexandre Aubin
a1d3376613 Simplify permission_clear, now named permission_reset 2019-09-13 16:31:03 +02:00
Alexandre Aubin
e5676c4b30 Propagate change in permission_list to permission_update 2019-09-13 16:31:03 +02:00
Alexandre Aubin
45483f4116 --short and --full options for group_list and permission_list 2019-09-13 16:31:03 +02:00
Alexandre Aubin
41e6f1b81c Simplify permission_add/remove to just permission_update with --add and --remove, similar to what's done for groups 2019-09-13 16:31:03 +02:00
Alexandre Aubin
6276485665 Simplify permission_list ... it really sounds like we don't need all these options 2019-09-13 16:31:03 +02:00
Alexandre Aubin
112976f8ee Refuse to edit user primary groups 2019-09-13 16:31:02 +02:00
Alexandre Aubin
97c637f44c Fix group command descriptions in the actionmap 2019-09-13 16:31:02 +02:00
Alexandre Aubin
c5d0a27098 Simplify group info and group update interface and code 2019-09-13 16:31:02 +02:00
Alexandre Aubin
0f7b8c3515 Simplify group list interface and code 2019-09-13 16:31:02 +02:00
Alexandre Aubin
a6d68c76c4 permission_update -> permission_urls (+ tweak the helper name) so that it's more differentiable from user_permission_update 2019-09-13 16:31:02 +02:00
Alexandre Aubin
f60af2053f permission_add/remove becomes create/delete to be consistent with user and group create/delete. In the context of permissions, add/remove shall instead be related to adding/removing an existing permission for a user or group. 2019-09-13 16:31:02 +02:00
Alexandre Aubin
34df84e222 group add -> group create, to be consistent with user create/delete 2019-09-13 16:31:02 +02:00
Alexandre Aubin
0f688caccd Swap 'main' in permission namespace 2019-09-13 16:31:02 +02:00
Alexandre Aubin
51171b84bf main.metronome -> main.xmpp 2019-09-13 16:31:02 +02:00
Alexandre Aubin
6d604d711f
Merge pull request #768 from YunoHost/rework-migration-system
Rework migration system to have independent migrations
2019-09-13 03:01:59 +02:00
Laurent Peuch
92a6315514 [ux] apparently is super nerdy and you should use <variable> 2019-09-11 05:20:08 +02:00
Laurent Peuch
fd99ef0d6c [ux] make dns-conf help sentence obvious that it's a sample conf 2019-09-11 03:56:53 +02:00
decentral1se
f74ccb85ec
Merge pull request #787 from decentral1se/travis-ci-getting-started
Add basic Travis CI configuration
2019-09-11 00:28:14 +01:00
Alexandre Aubin
a4ec76e77b Remove debug print 2019-09-10 22:05:03 +02:00
Josué Tille
84fe23786c Fix permission sychronization 2019-09-10 22:05:03 +02:00
Alexandre Aubin
ec3856a25c Propagate changes about revert mechanism and naming on migration 12 2019-09-10 17:15:08 +02:00
Alexandre Aubin
2c57b6850c
Merge pull request #790 from YunoHost/enh-plural-http-permission-api
[enh] Rename permission http api route in plural
2019-09-10 14:37:31 +02:00
Alexandre Aubin
dc7b8d1faa
Merge branch 'stretch-unstable' into rework-migration-system 2019-09-10 14:27:56 +02:00
Alexandre Aubin
b29731c28b We don't need this try/except 2019-09-10 14:25:51 +02:00
Alexandre Aubin
92fa21641b Fix some stuff about removing the --revert option 2019-09-09 12:07:44 +02:00
Alexandre Aubin
e97c708b11
Merge pull request #774 from YunoHost/enh-remove-revert-mechanism
[enh] remove revert mechanism
2019-09-09 11:24:40 +02:00
ljf (zamentur)
70cf0db0ad
[enh] Rename permission http api route in plural 2019-09-04 13:35:06 +02:00
Alexandre Aubin
c8e70bfc28
Merge pull request #788 from yunohost-bot/weblate-yunohost-core
Update from Weblate
2019-09-02 22:18:58 +02:00
Quentí
42ccb0973b Translated using Weblate (Occitan)
Currently translated at 99.8% (581 of 582 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/oc/
2019-09-02 19:12:08 +00:00
Quentí
0cb81512f3 Translated using Weblate (Occitan)
Currently translated at 99.1% (577 of 582 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/oc/
2019-09-02 19:12:08 +00:00
ppr
7af9ad4991 Translated using Weblate (French)
Currently translated at 94.0% (547 of 582 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2019-09-02 19:12:08 +00:00
Mélanie Chauvel
340d276219 Translated using Weblate (French)
Currently translated at 94.0% (547 of 582 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/fr/
2019-09-02 19:12:08 +00:00
Mélanie Chauvel
6563fdda86 Translated using Weblate (Esperanto)
Currently translated at 7.0% (41 of 582 strings)

Translation: YunoHost/core
Translate-URL: https://translate.yunohost.org/projects/yunohost/core/eo/
2019-09-02 19:12:08 +00:00