readonly user cannot be updated within AdmPortal
authorRotundo, Alfred (ar3165) <ar3165@att.com>
Mon, 25 Feb 2019 14:45:12 +0000 (14:45 +0000)
committerRotundo, Alfred (ar3165) <ar3165@att.com>
Mon, 25 Feb 2019 14:45:12 +0000 (14:45 +0000)
corrected syntax error on user admin page preventing the update button from working.

Change-Id: If5cecca946977706751fae64b7fc8f76100f7825
Issue-ID: SDNC-661
Signed-off-by: Rotundo, Alfred (ar3165) <ar3165@att.com>
admportal/views/user/list.ejs

index 4a4e909..947a811 100644 (file)
@@ -178,7 +178,7 @@ function updateRequest(email,password,privilege) {
        document.getElementById('uf_confirm_password').value = password;
        if ( privilege == "A" ){
                document.getElementById('uf_privilege').value = 'admin';
-       }else if (priv == "R"){
+       }else if (privilege == "R"){
                document.getElementById('uf_privilege').value = 'readonly';
        }else{
                document.getElementById('uf_privilege').value = 'admin';