Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ae1aad1 authored by Irem Uguz's avatar Irem Uguz
Browse files

Check for SystemAuthority on PolicyEnforcementInfo

Check for SystemAuthority for system enforcing policies. Previously,
system authority was represented as UnknownAuthority. After ag/34519797
SystemAuthority is ready for use.

Bug: 414733570
Test: None
Flag: EXEMPT refactor

Change-Id: I72e652ef4387a0c71634eca01100982ed80d1bdb
parent 77d7df1c
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -78,9 +78,7 @@ public class PolicyEnforcementInfo {
    }

    private static boolean isSystemAuthority(EnforcingAdmin enforcingAdmin) {
        // System authorities are implemented as UnknownAuthority.
        // TODO(b/414733570): Add SystemAuthority class to represent system authority properly.
        return enforcingAdmin.getAuthority() instanceof UnknownAuthority;
        return enforcingAdmin.getAuthority() instanceof SystemAuthority;
    }

    private static boolean isSupervisionRole(EnforcingAdmin enforcingAdmin) {