aboutsummaryrefslogtreecommitdiffstats
path: root/app/policies
AgeCommit message (Collapse)Author
2018-05-09Refs #6961; Update Workbench#editZog
- Update the form - Use policies and update the seeds accordingly - Add a link in the navbar(s)
2018-05-07Refs #6960; Add owners to workgroupsZog
And define policies
2018-04-29Fix specsZog
2018-04-27Refs #6572; Fix specsZog
2018-04-27Refs #6572; Fix referentials policiesZog
2018-04-27Refs #6572; Refactor policyZog
2018-04-27Refs #6572; Fix browse policyZog
2018-04-27Refs #6572; Update policiesZog
disable all actions for non-ready referentials
2018-04-27Refs #6572; New Referential#Show for noredy referentialsZog
2018-04-16Refs #6476 Add merge permissions6476-merge-permissionscedricnjanga
2018-04-04Refs 6226; Add a button to create opposite routesZog
2018-03-12Refs #6133; First Crud for exportsZog
2018-03-12Refs #6133; Fix specsZog
2018-03-02Refs #3562 add workbench edit button on workbench#showcedricnjanga
2018-02-27Don't use all compliance_control_set from stif organisation. We will use ↵5950_allow_user_to_see_ccset_from_other_organisationLuc Donnet
later compliance_control_set selected by stif organisatoon Refs #5950 @2
2018-02-23Refs #5950 Fix 404 error when user wants to see CCSet from other organisation :cedricnjanga
- remove begin_association_chain in controller - Change collecyion to only see user organisayion CCSet and STIF CCSet - add policy for show action
2018-01-29Refs #5750 @1h; Manage non-commercial StopAreasZog
- Add a `kind` attribute - Hide irrelevant fields in the form
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