Skip to content

1.5.0

Compare
Choose a tag to compare
@maggi373 maggi373 released this 06 Sep 14:25
· 87 commits to main since this release
d9d8ea1

What's Changed

Features

  • Adds user manegement and user roles that have certain access #62
    • Users can change their own password without any needed permissions
    • Users only have access to certain pages/actions based on their roles
    • Users can also only have access to certain modpacks
  • Adds error flash messages and some error handling
  • Allows optional and server builds to be enabled or disabled #75
  • Error handling for s3 uploading

Fixes

  • Fixes forced notation on modversions
  • Removed old unused flash system
  • Fixed in client where the same modpack could be added again
  • Reduced html code on modpack and modpacklibrary for hidden elements
  • fix an issue where not published builds where published in api
  • fix an issue where hidden modpacks where not hidden in api
  • fix an issue with api where it provided an additional mods in download links for mods in a pack
  • new templates for issues on github
  • fixes some bugs during setup

Database changes

ALTER TABLE sessions ADD COLUMN user_id INT NOT NULL
ALTER TABLE user_permissions ADD COLUMN solder_env BOOLEAN DEFAULT(0)
ALTER TABLE modpacks ADD COLUMN enable_optionals BOOLEAN DEFAULT(0)
ALTER TABLE modpacks ADD COLUMN enable_server BOOLEAN DEFAULT(0)

CREATE TABLE IF NOT EXISTS user_modpack (
                        id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
                        user_id INT NOT NULL,
                        modpack_id INT NOT NULL,
                        created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
                        updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP)

Due to a mistake, we forgot about user_permission table, so for existing users you need to manually add their entry, replace %s with the user id being added

INSERT INTO user_permissions (user_id) VALUES (%s)

Full Changelog: 1.4.3...1.5.0