From c4347911f47a6899a15192d04cf70a30e1ee70fb Mon Sep 17 00:00:00 2001 From: Yhtyyar Sahatov Date: Tue, 25 Jun 2024 13:06:50 +0300 Subject: [PATCH] added oz-access-managed modifier --- slitherin/detectors/unprotected_setter.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/slitherin/detectors/unprotected_setter.py b/slitherin/detectors/unprotected_setter.py index 75ae427..018c81e 100644 --- a/slitherin/detectors/unprotected_setter.py +++ b/slitherin/detectors/unprotected_setter.py @@ -41,7 +41,11 @@ def is_setter(self, fun, params=None): def has_access_control(self, fun): for m in fun.modifiers: - if m.name in ["initializer", "onlyOwner"] or m.name.startswith("only"): + if m.name in [ + "initializer", + "onlyOwner", + "restricted", + ] or m.name.startswith("only"): return True if fun.visibility in ["internal", "private"]: return True