* userModel: rename the checkBeforeBatchEdit method to checkBeforeBatchUpdate.

This commit is contained in:
liugang
2023-12-07 13:49:27 +08:00
parent 9681527b5a
commit c59ec04567
+2 -2
View File
@@ -93,7 +93,7 @@ class userModel extends model
* @access private
* @return bool
*/
private function checkBeforeBatchEdit(array $users, string $verifyPassword): bool
private function checkBeforeBatchUpdate(array $users, string $verifyPassword): bool
{
if(!$users) return true;
@@ -717,7 +717,7 @@ class userModel extends model
*/
public function batchUpdate(array $users, string $verifyPassword): bool
{
$this->checkBeforeBatchEdit($users, $verifyPassword);
$this->checkBeforeBatchUpdate($users, $verifyPassword);
if(dao::isError()) return false;
$this->loadModel('action');