Simplify sid comparison

This commit is contained in:
Adrien Ferrand 2019-05-22 10:42:56 +02:00
parent 9f40826fb5
commit aa452abc11

View file

@ -68,7 +68,7 @@ def _generate_dacl(user_sid, mode):
# If user is already system or admins, any ACE defined here would be superseeded by
# the full control ACE that will be added after.
if str(user_sid) not in [str(system), str(admins)]:
if user_sid not in [system, admins]:
# Handle user rights
user_flags = _generate_windows_flags(analysis['user'])
if user_flags: