Commit graph

57 commits

Author SHA1 Message Date
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
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
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
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
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
Alexandre Aubin
ad3ebceff6 Fix old 'auth' thing in app helpers 2019-05-31 18:45:21 +02:00
Alexandre Aubin
24cfc15536 Merge branch 'stretch-unstable' into group_permission 2019-05-31 18:15:09 +02:00
Alexandre Aubin
a61f956a03
Set minimum version for these new helpers 2019-05-21 15:07:13 +02:00
Josué Tille
fde8cafa4e
Merge remote-tracking branch 'upstream/stretch-unstable' into group_permission 2019-05-10 22:53:06 +02:00
Maniack Crudelis
1db72311d2
Add helpers for sso config
And especially restore the old documentation about those keys
2019-05-06 12:52:47 +02:00
Alexandre Aubin
73b1ff169f Move ynh_webpath_available/register to setting 2019-04-25 20:14:52 +02:00
Maniack Crudelis
e8da94ddf0
Merge branch 'stretch-unstable' into helpers_min_version 2019-03-18 07:56:12 +01:00
Maniack Crudelis
945912cc98
[fix] ynh_app_setting_get and ynh_app_setting_delete don't have a fourth argument. 2019-03-10 13:22:07 +01:00
Alexandre Aubin
650232b1c3
Merge branch 'stretch-unstable' into group_permission 2019-03-05 02:59:05 +01:00
Alexandre Aubin
078b9b90bc
Drunk commits were made >.> 2019-03-03 00:50:36 +01:00
Alexandre Aubin
4a8563ed9e
Clarify the if case for 'get' 2019-03-01 01:43:16 +01:00
Maniack Crudelis
873bf4ae37 Add min version for all helpers 2019-02-25 18:44:21 +01:00
Alexandre Aubin
f17f51f3f6 Add ynh_app_setting helper to optimize app setting interface 2019-02-24 03:32:14 +01:00
Alexandre Aubin
022d3922c1 This is a list of url so should be called 'urls' 2019-01-19 20:44:45 +00:00