aboutsummaryrefslogtreecommitdiff
path: root/app/controllers
Commit message (Collapse)AuthorAgeFilesLines
* Add permissionshellekin2020-10-091-1/+3
| | | | | - `current_agent` is now a full instance of Agent - provide helpers to verify current user roles
* Make map more beautifulhellekin2020-10-081-0/+2
| | | | | | | | | | | | | This commit introduces a few things: 1. New `content_for` hooks for :debug, :head, and :body_end so that views code remains consistent and clean 2. Fullscreen map! 3. Welcome#index view, the Rails way It also moves controller-related code to the controller, Enjoy!
* Fix form, add flashhellekin2020-10-061-0/+50
|
* First pass at Resources...hellekin2020-10-061-1/+1
|
* First pass at listing Resourceshellekin2020-10-061-0/+42
| | | | | | This implements resource listing and pagination. See /resources
* Refactor authentication method to make it a bit more readablehellekin2020-10-061-35/+67
|
* First pass at something visiblehellekin2020-10-063-0/+38
| | | | This is a first version of the application, to go beyond simple authentication.
* Extract Role check to a background jobhellekin2020-10-061-9/+3
| | | | | | | When using SSO, the Discourse sends a list of the user groups. We take the opportunity to update Agency information for the user. This is performed as a background job, as it involves networked requests to the Discourse, e.g., to verify group ownership...
* Add Authentication logichellekin2020-10-052-0/+94
| | | | | | | | | | | The ApplicationController provides a `current_user` method (and helper) to access the authenticated user (if any). The WelcomeController provides minimal logic to authenticate against DiscourseSSO. Current state is that one can login and logout. Views need a lot of work.
* rails new incommon-map -d postgresql -C -Thellekin2020-10-052-0/+2