File tree Expand file tree Collapse file tree
phpmyfaq/src/phpMyFAQ/Setup Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -864,6 +864,29 @@ private function applyUpdates400Beta2(): void
864864 private function applyUpdates405 (): void
865865 {
866866 if (version_compare ($ this ->version , '4.0.5 ' , '< ' )) {
867+ // Delete old permissions
868+ $ this ->queries [] = sprintf (
869+ 'DELETE FROM %sfaqright WHERE name = \'view_sections \'' ,
870+ Database::getTablePrefix ()
871+ );
872+ $ this ->queries [] = sprintf (
873+ 'DELETE FROM %sfaqright WHERE name = \'add_section \'' ,
874+ Database::getTablePrefix ()
875+ );
876+ $ this ->queries [] = sprintf (
877+ 'DELETE FROM %sfaqright WHERE name = \'edit_section \'' ,
878+ Database::getTablePrefix ()
879+ );
880+ $ this ->queries [] = sprintf (
881+ 'DELETE FROM %sfaqright WHERE name = \'delete_section \'' ,
882+ Database::getTablePrefix ()
883+ );
884+ $ this ->queries [] = sprintf (
885+ 'DELETE FROM %sfaqright WHERE name = \'delete_section \'' ,
886+ Database::getTablePrefix ()
887+ );
888+
889+ // Update faqforms table
867890 switch (Database::getType ()) {
868891 case 'mysqli ' :
869892 $ this ->queries [] = sprintf (
You can’t perform that action at this time.
0 commit comments