mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
[bug] disabled groups still appears as available in sign-up modal
This commit is contained in:
parent
c7fbc4d01d
commit
53e02622b9
@ -6,6 +6,7 @@
|
||||
- Fix a bug: Users with role 'member' cannot download their invoices
|
||||
- Fix a bug: Wallet credit inputs does not allow to put zeros at the end of the decimal part of the amount
|
||||
- Fix a bug: unable to create the first user because role member was missing
|
||||
- Fix a bug: disabled groups still appears as available in sign-up modal
|
||||
- Fix a security issue: updated nokogiri to 1.10.4 to fix [CVE-2019-5477](https://nvd.nist.gov/vuln/detail/CVE-2019-5477)
|
||||
- Fix a security issue: updated eslint-utils to 1.4.2 to fix [GHSA-3gx7-xhv7-5mx3](https://github.com/mysticatea/eslint-utils/security/advisories/GHSA-3gx7-xhv7-5mx3)
|
||||
- Fix a security issue: updated devise to 4.7.1 to fix [CVE-2019-16109](https://nvd.nist.gov/vuln/detail/CVE-2019-16109)
|
||||
|
@ -106,6 +106,7 @@ Application.Controllers.controller('ApplicationController', ['$rootScope', '$sco
|
||||
// retrieve the groups (standard, student ...)
|
||||
Group.query(function (groups) {
|
||||
$scope.groups = groups;
|
||||
$scope.enabledGroups = groups.filter(function (g) { return (g.slug !== 'admins') && !g.disabled; });
|
||||
});
|
||||
|
||||
// retrieve the CGU
|
||||
|
@ -166,7 +166,7 @@
|
||||
<div class="form-group required-row" ng-class="{'has-error': signupForm.group_id.$dirty && signupForm.group_id.$invalid}">
|
||||
<div class="col-sm-12">
|
||||
<div>
|
||||
<select ng-model="user.group_id" class="form-control" name="group_id" ng-options="g.id as g.name for g in groups" required>
|
||||
<select ng-model="user.group_id" class="form-control" name="group_id" ng-options="g.id as g.name for g in enabledGroups" required>
|
||||
<option value="" translate>{{ 'your_user_s_profile' }}</option>
|
||||
</select>
|
||||
<span class="exponent exponent-select help-cursor" title="{{ 'used_for_invoicing' | translate }}"><i class="fa fa-asterisk" aria-hidden="true"></i></span>
|
||||
|
Loading…
x
Reference in New Issue
Block a user