aboutsummaryrefslogtreecommitdiffstats
path: root/app/policies
AgeCommit message (Collapse)Author
2018-01-11Add Referential#merged_at and make Referentials archived and merged. Refs #5559Alban Peignier
2018-01-11Fix policyXinhui
Refs #5549
2018-01-10ReferentialPolicy#archive? is false when referential is read only. Refs #5413Alban Peignier
2018-01-09Refs: #5413@0.5h; Refactoring of #archived_or_finalised?Robert
2018-01-09Refs: #5413@0.3h; Fix bug in newapplciation helper unarchive link creationRobert
2018-01-08Fixes: #5413@1h; Specs implementedRobert
2018-01-05Create first merge interface. Refs #5299Alban Peignier
2017-12-28Remove debug message from LinePolicy#create?Alban Peignier
2017-12-26Refs #5382 @1h; Enable all area types for Stopareas in RoutesZog
Given that the organisation has the matching feature.
2017-12-21Refs #5349 @1h; Deactivate StopAreas instead of destroying them5349-deactivate-stop-areasZog
- Update decorators (had to split `action_links` because of `StopPointDecorator` inheriting from `StopAreaDecorator`) - Add methods on model - Add routes - Add actions on controller (`Activatable` concern, shared with `LinesController`) - Add I18n keys
2017-12-21Refs #5430 @2h; Deactivate lines instead of destroying themZog
- Add `activate` and `deactivate` actions in `LinesController`, as well as corresponding routes - Add `activate!` and `deactivate!` methods in `Chouette::Line`, as well as `activated?` - Add `activate?` and `deactivate?` permissions in `LinePolicy` - Add corresponding `action_links`in the Decorator - Create helper for these actions - Add an optional `'extra_class` to the Links - Update styles for ".delete-action" to handle the case where there are several - Add I18n keys accordingly
2017-12-21BusinessCalendar => PurchaseWindowcedricnjanga
belongs_to referential
2017-12-21Refs #5301 First draft for Business Calendarscedricnjanga
2017-12-20Merge branch 'master' into 5333-add-policies-for-referentials-sharing5333-add-policies-for-referentials-sharingAlban Peignier
2017-12-19Refs #5325; Fix calendat policyZog
Remove the "!archived?" condition which makes no sense here.
2017-12-19Refs #5325@0.5h; Use policies for calendar sharingZog
Use policies to determine if a user is allowed to share a calendar, instead of a hardcoded string
2017-12-19Refs #5333@1.5h; Use permissions to sync StopAreas and LinesZog
- add missing policies - update permissions translator - update views to check for the permission - update views helper to check for the permission - uipdate controllers to check for the permission
2017-12-13Fix compliance control block#edit view pageheadercedricnjanga
2017-11-30Delete methods that return false in policy beacause this is the default ↵Luc Donnet
behaviour Refs #5093
2017-11-30Fix import policy to not authorize destroy and not be linked with ↵Luc Donnet
referential state (archived) Refs #5093
2017-11-29Check user permissions in StopAreaPolicy. Refs #4825Alban Peignier
2017-11-29Check user permissions in CompanyPolicy. Refs #4967Alban Peignier
2017-11-29Check user permissions in LinePolicy. Refs #4824Alban Peignier
2017-11-24Take into account code reviewcedricnjanga
2017-11-22Change the way we name classescedricnjanga
We now always use modules for namespaces => same structure for models, decorators, policies...
2017-11-22Merge branch 'master' into 4941-refactoring_object_idcedricnjanga
2017-11-22Fix the delation of the hacking of Chouette::ActiveRecord#model_name to ↵cedricnjanga
remove the Chouette namespace off of the construction of link in the app and in other places. Added a small change in the reflex sync to set the stop_area_referential in the initialization of the object to be in sync with the work on the objectids (need a objectid_formatter)
2017-11-21Change the way we name classescedricnjanga
We now always use modules for namespaces => same structure for models, decorators, policies...
2017-11-20Rearrange policies and decorators folders to include them after renaming ↵cedricnjanga
class names on several models
2017-11-13Refs #4952 Fix bug related to compliance control set action links displaycedricnjanga
2017-11-09Refs #4776 Add policies to ComplianceControl and ComplianceControlSetcedricnjanga
2017-11-06add validate method in referentials_controller for call ↵Guillaume
ComplianceControlSetCopyWorker, and change routes/views for select compliance_control_set
2017-09-28Merge branch 'master' into 4466-compliance_check_setsGuillaume
2017-09-27Disable policy for testingXinhui
2017-09-26Refs: #4440@1.5h;Robert
ImportPolicy changing *.imports →' imports.*
2017-09-25add compliance_check_sets structure Refs #3564Guillaume
2017-09-19Fix compliance_control controller spec due to missing permissionsXinhui
2017-09-19Compliance control policyXinhui
Refs #4543
2017-09-19Compliance Control PolicyXinhui
Refs #4543
2017-09-19Merge pull request #69 from af83/4431-permission-renamingLuc Donnet
Fixes: #4431@0.16666666666666666h;
2017-09-19Merge pull request #71 from af83/4446-spec-features-api-keysLuc Donnet
4446 spec features api keys
2017-09-15Refs: #4446@1.5h;Robert
* Make failing /delete_api_key_feature_spec pending - Seems Capybara only sees html from the partial api_keys/_form, but not the parent api_keys/edit, which happens to contain the delete link :( * ApiKeyPolicy adapted - update? depends on record's organisation as no referential present - create? depends on user's permission only as organisation will be correct anyway
2017-09-15merged 4442 into 4446Robert
2017-09-14Refs: #4446@1h; Api Keys Edit feature specedRobert
2017-09-14create base structure for compliance_control_setsGuillaume
2017-09-14Fixes: #4442@0.5h;4442-api_keys-permissions-spexRobert
2017-09-14Fixes: #4431@0.16666666666666666h;4431-permission-renamingRobert
2017-09-14Fix api_key policies Refs #4442Luc Donnet
2017-09-11merged with masterRobert
2017-09-11Fixes #4189@4h Route DuplicationRobert
* Duplication of Route is triggered by link and UI forwarded to edit of duplicatee - Changing route, only POST duplicate_referential_line_route --> RoutesController#duplicate - Removing route GET duplicate_referential_line_route --> RoutesController#duplicate - Removing controller action RoutesController#post_duplicate * Link in Route Decorator depends on new policy RoutePolicy#decorate? * Adapting specs