Add CanEditEbooks benefit and clean up some PHPStan errors

This commit is contained in:
Alex Cabal 2024-12-14 11:50:16 -06:00
parent 23b5c8ef31
commit 1a742baa51
10 changed files with 75 additions and 14 deletions

View file

@ -8,6 +8,7 @@ CREATE TABLE IF NOT EXISTS `Benefits` (
`CanReviewOwnArtwork` tinyint(1) unsigned NOT NULL DEFAULT 0,
`CanEditUsers` tinyint(1) unsigned NOT NULL DEFAULT 0,
`CanEditCollections` tinyint(1) unsigned NOT NULL DEFAULT 0,
`CanEditEbooks` tinyint(1) unsigned NOT NULL DEFAULT 0,
`CanCreateEbookPlaceholders` tinyint(1) unsigned NOT NULL DEFAULT 0,
PRIMARY KEY (`UserId`),
KEY `idxBenefits` (`CanAccessFeeds`,`CanVote`,`CanBulkDownload`)