mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
Merge branch 'dev' into us78
This commit is contained in:
commit
12c25389fa
@ -2,6 +2,7 @@
|
||||
|
||||
- Fix a bug: error handling on password recovery
|
||||
- Fix a bug: error handling on machine attachment upload
|
||||
- Fix a bug: first day of week is ignored in statistics custom filter
|
||||
- Refactored frontend invoices translations
|
||||
|
||||
## v2.8.1 2019 January 02
|
||||
|
@ -94,9 +94,9 @@ Application.Controllers.controller('StatisticsController', ['$scope', '$state',
|
||||
minDate: null,
|
||||
maxDate: moment().toDate(),
|
||||
options: {
|
||||
startingDay: 1
|
||||
startingDay: Fablab.weekStartingDay
|
||||
}
|
||||
} // France: the week starts on monday
|
||||
}
|
||||
};
|
||||
|
||||
// available custom filters
|
||||
|
@ -1,3 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# API Controller for resources of type Abuse.
|
||||
# Typical action is an user reporting an abuse on a project
|
||||
class API::AbusesController < API::ApiController
|
||||
before_action :authenticate_user!, except: :create
|
||||
|
||||
|
@ -1,3 +1,6 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# API Controller for resources of type User with role 'admin'.
|
||||
class API::AdminsController < API::ApiController
|
||||
before_action :authenticate_user!
|
||||
|
||||
|
@ -1,13 +1,16 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
# API Controller for resources of type AgeRange
|
||||
# AgeRange are used in Events
|
||||
class API::AgeRangesController < API::ApiController
|
||||
before_action :authenticate_user!, except: [:index]
|
||||
before_action :set_age_range, only: [:show, :update, :destroy]
|
||||
before_action :set_age_range, only: %i[show update destroy]
|
||||
|
||||
def index
|
||||
@age_ranges = AgeRange.all
|
||||
end
|
||||
|
||||
def show
|
||||
end
|
||||
def show; end
|
||||
|
||||
def create
|
||||
authorize AgeRange
|
||||
|
Loading…
x
Reference in New Issue
Block a user