You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/administration/recent_activity/recent_activity.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ For every exact hour, the cronjob line is:
43
43
## Permission and security
44
44
45
45
The [`activity_log/read`](policies.md#activity-log) policy gives a role the access to the **Admin** -> **Activity list**, the dashboard's **Recent activity** block, and the user profile's **Recent activity**.
46
-
It can be limited to "Only own logs" ([`ActivityLogOwner`](limitation_reference.md#activitylogowner-limitation)).
46
+
It can be limited to "Only own logs" ([`ActivityLogOwner`](limitation_reference.md#activity-log-owner-limitation)).
47
47
48
48
The policy should be given to every roles having access to the back office, at least with the `ActivityLogOwner` owner limitation, to allow them to use the "Recent activity" block in the [default dashboard](configure_default_dashboard.md) or their [custom dashboard](customize_dashboard.md).
49
49
This policy is required to view [activity log in user profile]([[= user_doc =]]/getting_started/get_started/#view-and-edit-user-profile), if [profile is enabled](update_from_4.5.md#user-profile).
The `ActivityLogOwner` limitation specifies if a user can see only their own [recent activity](recent_activity.md) log entries, and not entries from other users.
38
+
The Activity log Owner (`ActivityLogOwner`) limitation specifies if a user can see only their own [recent activity](recent_activity.md) log entries, and not entries from other users.
| `1` | "Only own logs" | Current user can only access their own activity log entries. |
43
43
44
-
## CartOwner limitation
44
+
## Cart Owner limitation
45
45
46
-
The `CartOwner` limitation specifies whether the user can modify a cart.
46
+
The Cart Owner (`CartOwner`) limitation specifies whether the user can modify a cart.
47
47
48
48
### Possible values
49
49
@@ -62,6 +62,16 @@ The Change Owner (`ChangeOwner`) limitation specifies whether the user can chang
62
62
|------|------|------|
63
63
|`1`|"Forbid"|The user cannot change owner of a content item|
64
64
65
+
## Discount Owner limitation [[% include 'snippets/lts-update_badge.md' %]] [[% include 'snippets/commerce_badge.md' %]]
66
+
67
+
The Discount Owner (`DiscountOwner`) limitation specifies whether the user can interact with a [discount](discounts.md).
68
+
69
+
### Possible values
70
+
71
+
|Value|UI value|Description|
72
+
|------|------|------|
73
+
|"self"|"self"|Only the user who is the owner of the discount gets access.|
74
+
65
75
## Content type Group limitation
66
76
67
77
The Content Type Group (`UserGroup`) limitation specifies that only users with at least one common *direct* user group with the owner of content get the selected access right.
#### Discounts [[% include 'snippets/lts-update_badge.md' %]][[% include 'snippets/commerce_badge.md' %]]
128
+
129
+
The discount policies decide which actions can be executed by given user or user group.
130
+
131
+
!!! caution "Customers and discount policies"
132
+
133
+
Customers don't need any policies to use the discounts on the [storefront](storefront.md).
134
+
Even the `discount/view` policy would allow them to access all the discount details, including the coupon codes to activate them, which could lead to system abuse.
135
+
136
+
137
+
| Module | Function | Effect | Possible limitations |
0 commit comments