Skip to content

Commit

Permalink
Remove unused private method
Browse files Browse the repository at this point in the history
Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
  • Loading branch information
Tithugues committed May 14, 2019
1 parent 7b00f5d commit d4699ac
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions libraries/classes/InsertEdit.php
Expand Up @@ -3518,19 +3518,4 @@ public function getHtmlForInsertEditRow(

return $html_output;
}

/**
* Returns whether the user has necessary insert/update privileges for the column
*
* @param array $table_column array of column details
* @param bool $insert_mode whether on insert mode
*
* @return boolean whether user has necessary privileges
*/
private function userHasColumnPrivileges(array $table_column, $insert_mode)
{
$privileges = $table_column['Privileges'];
return ($insert_mode && false !== strpos($privileges, 'insert'))
|| (! $insert_mode && false !== strpos($privileges, 'update'));
}
}

0 comments on commit d4699ac

Please sign in to comment.