diff --git a/README.md b/README.md index 410a1e9..49bb48a 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/plugin/model/rpg_api.rb b/plugin/model/rpg_api.rb index 22b4c0c..a036e73 100644 --- a/plugin/model/rpg_api.rb +++ b/plugin/model/rpg_api.rb @@ -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