123c93f WebUI: Make 'Unlock' option is available only on locked user page

2 files Authored by stsymbal 4 years ago, Committed by frenaud 4 years ago,
    WebUI: Make 'Unlock' option is available only on locked user page
    
    The implementation includes checking password policy for selected user.
    'Unlock' option is available only in case user reached a limit of login failures.
    
    Ticket: https://pagure.io/freeipa/issue/5062
    Signed-off-by: Serhii Tsymbaliuk <stsymbal@redhat.com>
    Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
    Reviewed-By: Armando Neto <abiagion@redhat.com>