Skip to content

refactor: defined roles do in role selection and refactored readme #556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Feb 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ $ bin/rails s # short for bin/rails server

6. Visit http://localhost:3000/apply, create an account, and complete an application

7. In another bash window, promote your user to an admin
7. In another bash window, promote your user to a director

```bash
$ cd hackathon-manager
$ bin/rails c # short for bin/rails console
# Wait for the console to start...
Loading development environment (Rails 5.1.1)
irb(main):001:0> User.last.update_attribute(:role, :admin)
irb(main):001:0> User.last.update_attribute(:role, :director)
```

8. Visit http://localhost:3000/manage and set up the hackathon as needed
Expand Down
6 changes: 5 additions & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ en:
If many people have already RSVP'd, consider sending a message out to this bus list asking for interest as well.
notes: Notes are shared with applicants. Supports Markdown and HTML.
user:
role: Limited access prevents the admin from adding, modifying, or deleting any records; modifications through the check-in process are allowed. Event tracking limits to only event tracking.
role: |
Users can only access and edit their own information <br/>
Volunteers can only access the check-in process <br/>
Organizers can not modify, add, or delete any records but can view questionnaires and other records <br/>
Directors do not have any restrictions and can add, edit, or delete any record or setting <br/>
is_active: Deactivating a user will prevent them from logging in. Their access will be immediately revoked from the admin and application pages.
receive_weekly_report: A weekly email report on admissions, bus lists, and messages. Only sent when there are weekly updates up until 7 days past the event. Disabled for inactive staff members.
message:
Expand Down