mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Remove warning to user (transfered in linter)
This commit is contained in:
parent
0f10b91fa1
commit
d1ea646876
1 changed files with 1 additions and 16 deletions
|
@ -1269,10 +1269,6 @@ def app_addaccess(apps, users=[]):
|
||||||
"""
|
"""
|
||||||
from yunohost.permission import user_permission_update
|
from yunohost.permission import user_permission_update
|
||||||
|
|
||||||
logger.warning(
|
|
||||||
"/!\\ Packagers ! This app is using the legacy permission system. Please use the new helpers ynh_permission_{create,url,update,delete} and the 'visitors' group to manage permissions."
|
|
||||||
)
|
|
||||||
|
|
||||||
output = {}
|
output = {}
|
||||||
for app in apps:
|
for app in apps:
|
||||||
permission = user_permission_update(
|
permission = user_permission_update(
|
||||||
|
@ -1294,10 +1290,6 @@ def app_removeaccess(apps, users=[]):
|
||||||
"""
|
"""
|
||||||
from yunohost.permission import user_permission_update
|
from yunohost.permission import user_permission_update
|
||||||
|
|
||||||
logger.warning(
|
|
||||||
"/!\\ Packagers ! This app is using the legacy permission system. Please use the new helpers ynh_permission_{create,url,update,delete} and the 'visitors' group to manage permissions."
|
|
||||||
)
|
|
||||||
|
|
||||||
output = {}
|
output = {}
|
||||||
for app in apps:
|
for app in apps:
|
||||||
permission = user_permission_update(app + ".main", remove=users)
|
permission = user_permission_update(app + ".main", remove=users)
|
||||||
|
@ -1316,10 +1308,6 @@ def app_clearaccess(apps):
|
||||||
"""
|
"""
|
||||||
from yunohost.permission import user_permission_reset
|
from yunohost.permission import user_permission_reset
|
||||||
|
|
||||||
logger.warning(
|
|
||||||
"/!\\ Packagers ! This app is using the legacy permission system. Please use the new helpers ynh_permission_{create,url,update,delete} and the 'visitors' group to manage permissions."
|
|
||||||
)
|
|
||||||
|
|
||||||
output = {}
|
output = {}
|
||||||
for app in apps:
|
for app in apps:
|
||||||
permission = user_permission_reset(app + ".main")
|
permission = user_permission_reset(app + ".main")
|
||||||
|
@ -1447,9 +1435,6 @@ def app_setting(app, key, value=None, delete=False):
|
||||||
|
|
||||||
# SET
|
# SET
|
||||||
else:
|
else:
|
||||||
logger.warning(
|
|
||||||
"/!\\ Packagers! This app is still using the skipped/protected/unprotected_uris/regex settings which are now obsolete and deprecated... Instead, you should use the new helpers 'ynh_permission_{create,urls,update,delete}' and the 'visitors' group to initialize the public/private access. Check out the documentation at the bottom of yunohost.org/groups_and_permissions to learn how to use the new permission mechanism."
|
|
||||||
)
|
|
||||||
|
|
||||||
urls = value
|
urls = value
|
||||||
# If the request is about the root of the app (/), ( = the vast majority of cases)
|
# If the request is about the root of the app (/), ( = the vast majority of cases)
|
||||||
|
|
Loading…
Add table
Reference in a new issue