@saooti/octopus-sdk 41.10.8 → 41.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -193,6 +193,16 @@ export const useRights = () => {
|
|
|
193
193
|
return roleContainsAny('ADMIN', 'ORGANISATION');
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
+
/** Can read/edit RSS rules */
|
|
197
|
+
function canReadRSSRules(): boolean {
|
|
198
|
+
return roleContainsAny('ADMIN', 'ORGANISATION', 'PRODUCTION');
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
/** Can edit RSS rules */
|
|
202
|
+
function canEditRSSRules(): boolean {
|
|
203
|
+
return canReadRSSRules();
|
|
204
|
+
}
|
|
205
|
+
|
|
196
206
|
return {
|
|
197
207
|
// Emissions
|
|
198
208
|
canCreateEmission,
|
|
@@ -224,6 +234,10 @@ export const useRights = () => {
|
|
|
224
234
|
canEditAggregator,
|
|
225
235
|
canDeleteAggregator,
|
|
226
236
|
|
|
237
|
+
// RSS Rules
|
|
238
|
+
canReadRSSRules,
|
|
239
|
+
canEditRSSRules,
|
|
240
|
+
|
|
227
241
|
// Other
|
|
228
242
|
canEditCodeInsertPlayer,
|
|
229
243
|
canEditTranscript,
|