VirtueMart Forum

VirtueMart 2 + 3 => Virtuemart Development and bug reports => Topic started by: seyi on May 18, 2021, 17:18:24 pm

Title: Edit user detail block in admin not saving
Post by: seyi on May 18, 2021, 17:18:24 pm
In 3.8.8, when editing a user in admin, the user detail block is not saving anymore, specifically
- Block user
- Receive system emails

Worked fine in 3.8.4.  In comparing the code, whitelisting for core removed the function, commenting this out:
<?php
        //if(!vmAccess::manager('core')){
            $whiteDataToBind = array();
            if(isset($data['name'])) $whiteDataToBind['name'] = $data['name'];
            if(isset($data['username'])) $whiteDataToBind['username'] = $data['username'];
            if(isset($data['email'])) $whiteDataToBind['email'] = $data['email'];
            if(isset($data['language'])) $whiteDataToBind['language'] = $data['language'];
            if(isset($data['editor'])) $whiteDataToBind['editor'] = $data['editor'];
            if(isset($data['password'])) $whiteDataToBind['password'] = $data['password'];
            if(isset($data['password2'])) $whiteDataToBind['password2'] = $data['password2'];
            unset($data['isRoot']);
       /* } else {
            $whiteDataToBind = $data;
        }*/
?>