From 35920d53afaae51590b84bf8cbdea4143a645052 Mon Sep 17 00:00:00 2001 From: Goffi Date: Sat, 5 Sep 2020 20:20:05 +0200 Subject: [PATCH] core (memory/memory): fixed assignations --- sat/memory/memory.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sat/memory/memory.py b/sat/memory/memory.py index 9e3ca3bd..de2f56a7 100644 --- a/sat/memory/memory.py +++ b/sat/memory/memory.py @@ -1230,7 +1230,7 @@ class Memory(object): 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 @@ class Memory(object): ) -> 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']