diff options
author | Yorhel <git@yorhel.nl> | 2019-10-14 15:15:46 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-10-14 16:27:07 +0200 |
commit | b539ea56c2406a110ca6666e9f42c3b4af8e1a10 (patch) | |
tree | 0da99d8f6d3a0134a44585ae05d041d764161c39 /lib/VNDB/DB | |
parent | 77f3a2933ea14bdec59354e40075b7faa3ff96ea (diff) |
Delete the user deletion feature
It's rather much code just to run a single SQL statement that I almost
never need. Incidentally, the feature was also broken because the DELETE
permission wasn't granted in perms.sql.
Diffstat (limited to 'lib/VNDB/DB')
-rw-r--r-- | lib/VNDB/DB/Users.pm | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/VNDB/DB/Users.pm b/lib/VNDB/DB/Users.pm index 276ce202..d80e6547 100644 --- a/lib/VNDB/DB/Users.pm +++ b/lib/VNDB/DB/Users.pm @@ -6,7 +6,7 @@ use warnings; use Exporter 'import'; our @EXPORT = qw| - dbUserGet dbUserDel + dbUserGet |; @@ -79,12 +79,5 @@ sub dbUserGet { return wantarray ? ($r, $np) : $r; } - - -# uid -sub dbUserDel { - $_[0]->dbExec(q|DELETE FROM users WHERE id = ?|, $_[1]); -} - 1; |