Mercurial > libervia-backend
changeset 3349:2a7e36b69fd2
core (memory/memory): fixed assignations
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 05 Sep 2020 20:20:05 +0200 |
parents | 12c427156cac |
children | cc6164a4973b |
files | sat/memory/memory.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/sat/memory/memory.py Tue Aug 25 08:55:16 2020 +0200 +++ b/sat/memory/memory.py Sat Sep 05 20:20:05 2020 +0200 @@ -1230,7 +1230,7 @@ if not file_data.get('parent'): raise exceptions.PermissionError() else: - perm_type == C.ACCESS_TYPE_PUBLIC + perm_type = C.ACCESS_TYPE_PUBLIC if perm_type == C.ACCESS_TYPE_PUBLIC: continue elif perm_type == C.ACCESS_TYPE_WHITELIST: @@ -1341,13 +1341,13 @@ ) -> None: read_data = access.setdefault(C.ACCESS_PERM_READ, {}) if read_data.get('type') != C.ACCESS_TYPE_WHITELIST: - read_data['type'] == C.ACCESS_TYPE_WHITELIST + read_data['type'] = C.ACCESS_TYPE_WHITELIST if 'jids' not in read_data: read_data['jids'] = [] read_whitelist = read_data['jids'] write_data = access.setdefault(C.ACCESS_PERM_WRITE, {}) if write_data.get('type') != C.ACCESS_TYPE_WHITELIST: - write_data['type'] == C.ACCESS_TYPE_WHITELIST + write_data['type'] = C.ACCESS_TYPE_WHITELIST if 'jids' not in write_data: write_data['jids'] = [] write_whitelist = write_data['jids']