From 74e5461c020ed279f7c4b23e2aa06d1f7270b150 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 18 Jul 2019 16:07:20 +0200 Subject: [PATCH] [bug] do not remove member role if last user was deleted --- CHANGELOG.md | 5 +++++ config/initializers/rolify.rb | 1 + package.json | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 717e6eec9..f354e3add 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog Fab Manager +- Fix a bug: no user can be created after the last member was deleted +- Fix a security issue: updated to lodash 4.17.14 to fix [CVE-2019-10744](https://github.com/lodash/lodash/pull/4336) +- Removed dependency to jQuery UI +- Updated angular-xeditable + ## v4.0.2 2019 July 10 - Fix a bug: unable to export members list diff --git a/config/initializers/rolify.rb b/config/initializers/rolify.rb index 14460ef6a..6fef9d22d 100644 --- a/config/initializers/rolify.rb +++ b/config/initializers/rolify.rb @@ -5,4 +5,5 @@ Rolify.configure do |config| # Dynamic shortcuts for User class (user.is_admin? like methods). Default is: false # Enable this feature _after_ running rake db:migrate as it relies on the roles table # config.use_dynamic_shortcuts + config.remove_role_if_empty = false end diff --git a/package.json b/package.json index f7c1c1e37..21978640c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fab-manager", - "version": "4.0.2", + "version": "4.0.3-dev", "description": "FabManager is the FabLab management solution. It is web-based, open-source and totally free.", "keywords": [ "fablab",