Skip to content

Commit

Permalink
Added Media section permission for anonymous user to be able to visua… (
Browse files Browse the repository at this point in the history
  • Loading branch information
zjabibexa authored and DominikaK committed Feb 20, 2023
1 parent 0933d70 commit 0f368e5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,17 @@ Because this template will be rendered inside a table, it starts with a `<tr>` t
</td>
</tr>
```
### Add Media permission

To be able to view the `photo` Field you have to add a `read` permission to `Media` section.

From **Admin** (gear icon) in the left menu, go to the **Roles** management screen and click the **Anonymous** Role.

![Policies for the Anonymous Role without Media section](step5_admin_anonymous_policies_without_media_section.png)

Edit the **Content/Read** Policy line to add the `Media` section to **Limitation** along with the `Standard` section.

![Policies for the Anonymous Role with Media section](step5_admin_anonymous_policies_with_media_section.png)

Now go to the homepage of your website and you will see the list of Rides.
However, the Ride photos are too large and stretch the table.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ From **Admin** (gear icon) in the left menu, go to the **Roles** management scre

Add the `User/Register` Policy to the Anonymous User. This will allow any visitor to the website to access the registration form.

![Policies for the Anynomous Role](step8_admin_anonymous_policies.png)
![Policies for the Anonymous Role](step8_admin_anonymous_policies.png)

Then go to `<yourdomain>/register`. The registration form is unstyled, so you need to add templates to it.

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0f368e5

Please sign in to comment.