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 password recovery
|
||||||
- Fix a bug: error handling on machine attachment upload
|
- 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
|
- Refactored frontend invoices translations
|
||||||
|
|
||||||
## v2.8.1 2019 January 02
|
## v2.8.1 2019 January 02
|
||||||
|
@ -94,9 +94,9 @@ Application.Controllers.controller('StatisticsController', ['$scope', '$state',
|
|||||||
minDate: null,
|
minDate: null,
|
||||||
maxDate: moment().toDate(),
|
maxDate: moment().toDate(),
|
||||||
options: {
|
options: {
|
||||||
startingDay: 1
|
startingDay: Fablab.weekStartingDay
|
||||||
}
|
}
|
||||||
} // France: the week starts on monday
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// available custom filters
|
// 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
|
class API::AbusesController < API::ApiController
|
||||||
before_action :authenticate_user!, except: :create
|
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
|
class API::AdminsController < API::ApiController
|
||||||
before_action :authenticate_user!
|
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
|
class API::AgeRangesController < API::ApiController
|
||||||
before_action :authenticate_user!, except: [:index]
|
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
|
def index
|
||||||
@age_ranges = AgeRange.all
|
@age_ranges = AgeRange.all
|
||||||
end
|
end
|
||||||
|
|
||||||
def show
|
def show; end
|
||||||
end
|
|
||||||
|
|
||||||
def create
|
def create
|
||||||
authorize AgeRange
|
authorize AgeRange
|
||||||
|
Loading…
x
Reference in New Issue
Block a user