Commit graph

71 commits

Author SHA1 Message Date
Josué Tille
fe5ca24222
Migrate old skipped,unprotected,protected_uris and create permission instead 2020-04-28 15:11:32 +02:00
Josué Tille
03bc568276
Fix regression due to merge 2020-04-28 15:00:21 +02:00
Josué Tille
73e2ede910
Merge branch 'stretch-unstable' into permission_protection 2020-04-28 14:20:25 +02:00
Josué Tille
af8773f767
Fix typo 2020-04-23 15:12:54 +02:00
Maniack Crudelis
6fb1e62a4c Clean getopts arguments 2020-04-20 21:00:45 +02:00
Maniack Crudelis
3b653994c7 Standardize helper comments 2020-04-20 20:58:17 +02:00
Maniack Crudelis
b0398ae6dc Use long arguments instead of short ones 2020-04-20 15:20:31 +02:00
Maniack Crudelis
57061b8e1d Unfold if-then when more than one line 2020-04-19 20:31:06 +02:00
Maniack Crudelis
80964a1312 Standardize tabulations 2020-04-19 20:03:55 +02:00
Maniack Crudelis
1dd4a73e17 Replace declare -Ar by local A for args_array 2020-04-19 19:10:39 +02:00
Josué Tille
52e2be8fe6
Merge branch 'stretch-unstable' into permission_protection 2020-04-09 16:22:08 +02:00
Alexandre Aubin
85df8b6545
Merge pull request #905 from YunoHost/add-permission-helpers
add ynh_permission_has_user
2020-04-09 14:30:10 +02:00
Alexandre Aubin
4f05aa3505
Merge pull request #906 from YunoHost/simplify-permission-migration
Attempt to simplify permission migration
2020-04-09 13:46:40 +02:00
Alexandre Aubin
6c9b537941 Drop unused helpers ynh_add_skipped/(un)protected_uris 2020-04-02 19:40:52 +02:00
Josué Tille
d95341840b
Rename default label name 2020-04-01 20:58:50 +02:00
Kay0u
9dd6d799f4
fix example 2020-03-30 21:37:25 +02:00
Kay0u
15f97765b6
Merge branch 'add-permission-helpers' of https://github.com/YunoHost/yunohost into add-permission-helpers 2020-03-30 21:33:12 +02:00
Kay0u
90459e7ae6
Add legacy_args, fix the helper 2020-03-30 21:32:29 +02:00
Alexandre Aubin
ad22677994 Attempt to simplify permission migration 2020-03-30 20:09:26 +02:00
Maniack Crudelis
288a617975
Let's have a working helper 2020-03-30 19:58:06 +02:00
Kay0u
51a0502e91
add ynh_permission_has_user 2020-03-30 19:36:41 +02:00
Josué Tille
e82dad1881
Update helper for label and tile support, authentication header and multiple URL support 2020-03-30 17:42:17 +02:00
Josué Tille
6f179afa82
Merge branch 'stretch-unstable' into permission_protection 2020-03-27 16:14:30 +01:00
Kay0u
026c666d7e
remove visitors only for if current value is / 2020-01-29 14:24:59 +07:00
Kay0u
6e427374ec
fix legacy permission management 2020-01-16 00:34:11 +07:00
Josué Tille
414fe1926a
Fix helper 2019-12-29 21:08:59 +01:00
Josué Tille
9aecacd995
Rename variables 2019-12-23 11:25:20 +01:00
Josué Tille
b38d1a495e
Add force argument in permission update and change default value in permission creation 2019-12-23 11:21:28 +01:00
Josué Tille
cad6f71016
Fix helper 2019-12-23 11:05:27 +01:00
Josue-T
0c6392a5f7
Fix helper
Co-Authored-By: Kayou <pierre.moltess@gmail.com>
2019-12-23 11:03:31 +01:00
Josué Tille
fe8a0cbcbd
Update helper for permission protection support 2019-12-22 15:03:29 +01:00
Alexandre Aubin
e84f57d7a8
Merge pull request #855 from kay0u/visitors-needs-all-users
Visitors permission needs All Users
2019-12-02 20:30:45 +01:00
Kay0u
32b6c2eccf
Visitors permission needs All Users 2019-11-29 22:48:17 +09:00
Alexandre Aubin
97e5d3b992 Remove those random sudo which are useless yet triggers LDAP warning when LDAP is in bad state 2019-11-28 00:10:40 +01:00
Alexandre Aubin
67bb386c39 Explicit that we wanna run this python code in 2.7, otherwise if you're in a python3 venv it may not find the yaml module 2019-11-25 18:27:01 +01:00
Kay0u
4b602f28b4
fail if permission already exists 2019-11-11 09:56:09 +09:00
Kay0u
59879634da
Fix parameters 2019-11-10 22:08:33 +09:00
Kay0u
464621f275
Improve permission helpers 2019-11-10 21:34:57 +09:00
Alexandre Aubin
9294664d6c Fix permission backward compatibility for the case where an app needs to make the app temporarily public during install script... 2019-10-26 17:46:51 +02:00
Alexandre Aubin
17ce7bd95c Rework depreciation warning about legacy permission stuff 2019-10-26 17:46:51 +02:00
Alexandre Aubin
e273195504
[fix] Bad copypasta: logger doesn't exists in that context... 2019-10-16 20:22:29 +02:00
Alexandre Aubin
e7d1cc5f94 Allow to specify right away what groups to allow for a permission when creating it 2019-10-09 23:02:57 +02:00
Alexandre Aubin
88794805eb We probably don't need to have multiple urls per permissions ... 2019-10-09 23:02:37 +02:00
Alexandre Aubin
2a5053b66b
Misc wording and orthotypography...
Co-Authored-By: Allan Nordhøy <epost@anotheragency.no>
2019-09-21 13:32:40 +02:00
Alexandre Aubin
2b51d247fb Propagate changes on app helpers + tests 2019-09-20 20:14:14 +02:00
Alexandre Aubin
c4743398e6 Deprecate (un)protected_uris and _regex settings + more explicit deprecation warning for app_add/remove/clearaccess 2019-09-15 18:17:46 +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
574e9aea44 Simplify permission_create/urls/delete interface and code 2019-09-13 16:31:03 +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