68c72e3 Privilege: add a helper checking if a principal has a given privilege

Authored and Committed by frenaud 4 years ago
    Privilege: add a helper checking if a principal has a given privilege
    
    server_conncheck is ensuring that the caller has the expected privilege.
    Move the code to a common place in ipaserver/plugins/privilege.py
    
    Related: https://pagure.io/freeipa/issue/7600
    Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
    Reviewed-By: Rob Crittenden <rcritten@redhat.com>
    Reviewed-By: Sergey Orlov <sorlov@redhat.com>
    
        
file modified
+2 -9