Skip to content

Commit

Permalink
Sheets not showing on web.
Browse files Browse the repository at this point in the history
  • Loading branch information
lynnfaraday committed Dec 22, 2020
1 parent dde1f3e commit 24f42b2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Configuration options can be found in game/config/rpg.yml.

`rpg_blurb` - The instructions that appear above the traits web chargen controls.

`public_sheets` - Set to 'true' to allow everyone to view sheets. 'false' will limit viewing to staff with the 'rpg_admin' permission.
`public_sheets` - Set to 'true' to allow everyone to view sheets. 'false' will limit viewing to staff with the **`rpg_admin`** permission.

`sheet_format` - Can be embed, url, or text. Embed is if you are embedding PDFs or frame-friendly web pages for your character sheets. URL just links to a URL. Text contains markdown text.

Expand Down
3 changes: 2 additions & 1 deletion plugin/model/rpg_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def self.get_sheet_for_web_viewing(char, viewer)
{
sheet: Rpg.format_sheet_for_viewing(char),
sheet_notes: Website.format_markdown_for_html(char.rpg_sheet_notes),
sheet_format: Global.read_config('rpg', 'sheet_format')
sheet_format: Global.read_config('rpg', 'sheet_format'),
can_view: true
}
end

Expand Down

0 comments on commit 24f42b2

Please sign in to comment.