aboutsummaryrefslogtreecommitdiffstats
path: root/app/policies
AgeCommit message (Collapse)Author
2017-10-20Breadcrumb for referential_stop_areasXinhui
2017-10-20Breadcrumb for journey_patternsXinhui
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
2017-08-18Api_key policy classXinhui
2017-08-14Refs #4256: starting with table_builder2 on imports#indexjpl
2017-08-04Timetable combination policycedricnjanga
2017-07-24Refs: #4019@0.5h; Fixes devise/cas_controller specRobert
2017-07-19Remove organisation_match for clone? in Referential policycedricnjanga
2017-07-12Add month? method in timetable policycedricnjanga
2017-07-10hotfixRobert
2017-07-10Fixes: #3478@2.5hRobert
- Decorator Spec Setup `spec/support/decortor_helpers.rb` - Speced - Fixed
2017-07-06Fixes: #3478@1.5hRobert
- Fixes remaining issues with LinePolicy, CalenderPolicy & RoutePolicy - Dead Code elimination
2017-07-06Refs:#3478@10h;Robert
Policy Refactoring and Policy Test Completion - All policies (and all permissions) under test. - Common patterns and potential problems identified... - ... and documented in DEVNOTES.md - some simply refactorings
2017-07-05Refs: #3478@1h;Robert
- All permissions tied to `!archived?` - Tests adapted - Policies refactored ? Is `create?` permission bound to `organisation_match?`
2017-07-05Refs: #3478@1.5h;Robert
- PolicyChecker authorizes(*) all now - Untied ApplicationPolicy#index? from show? - mv access_point_policy.rb to access_point_policy.rb fixing an invisible name curruption (local problem?) * to authorize: to allow (not here), to undergo the process of authorization (here)
2017-07-04Refs: #3478@3h; Policy Cleanup and Providing Policy and permissions for all ↵Robert
models and actions - ApplicationPolicy nondestructive permission depend on model existance - ApplicationPolicy destructive permission default to `false` - Tied Policy permissions at ApplicationPolicy Level: edit? → update?, new? → create?, index? → show? - ApplicationPolicy convenience methods `delete?` & `authorizes_action?(action)` - Refactoring of `spec/helpers/table_builder_helper_spec.rb` accordingly - Stubbing scope in specs (cannot switch to referential with a `build_stubbed` instance)
2017-07-04Refs: #3478@1h removed boiv-read-offer and BoivPolicyRobert
2017-07-04Refs: #3478@0.5h; refactored table_builder_helper/custom_links.rb, according ↵Robert
to moving authoriation BL into policies
2017-07-04Refs: #3478@1h; adapted table builder spexRobert
2017-07-04Refs: #3478@1hRobert
newapplication helper default authorization, (no if) -> * DefaultPolicy (all true) * Add some policies (LinePolicy) * Use `boiv:read` pour show, index * Adapted `table_builder`
2017-07-04Refs: #3478@2h Access correct referential in line_footnotes CtrlRobert
+ ApplicationController provides Pundit's UserContext's referential with `@referential` instead of `current_referential`, (`@referential` is computed from the URL, while `current_referential` was aliased to different methods, **not always** pointing to `Referential` instances) + ApplicationPolicy uses the record's referential in its `referential method` iff it is an instance of `Referential` else it uses the abovely provided referential, locally named `@current_referential` (as it should be named in the Ctrl too) This assures, in combination with the Ctrl Change, that `referential` **always** returns an instance of `Referential`! - TODO: Review my understanding of _Referential Setup_ inside the Ctrls
2017-05-31Refs: #3326; Policy application in referentials/showRobert
2017-05-31hotfix for broken code realoading due to standard vanilla AOP implementationRobert
2017-05-29Fixes: #3385; cas_session_controller flash message on redirectRobert
2017-05-29Refs: 3385; Headless LoginPolicy defined and used in cas_sessions_controllerRobert
2017-05-29Refs: #3385; basic policy for boiv:*Robert
2017-05-29Merge branch 'master' of github.com:af83/stif-boivRobert
2017-05-24Refs: #3446; hotfixRobert
2017-05-24Fixes #3446; adding routing_contstraint_zones policiesRobert
2017-05-24Refs: #3446; Applying to routes policyRobert
2017-05-24Refs: #3446; Applying to time_tables- and lines policyRobert
2017-05-24Refs: #3446; metaprogrammed policy criteriaRobert
2017-05-23Refs: 3446; basic archived policy implemented and used for time_table_policiesRobert