plugin.xml
PACKAGED_PortalAssetPickerSandbox (ADDED)plugin.xmlParameters: pluginName: libName: defaultConfig: type: json mandatory: true description: default value:
Code Block |
---|
| {
"assetNatures": "IMAGE",
"variations": "circle_png",
"min": 1,
"max": 1,
"fulltext": "",
"showPreview": false,
"showFilters": false,
"ordered": false,
"showSort": false,
"showCursors": true,
"showCropper": true,
"showFocus": false,
"expectedWidth": 500,
"expectedHeight": 300,
"configPaths": [
{ "value": "", "text": "", "selected": true },
{ "value": "picker-hotels", "text": "picker-hotels", "selected": false }
]
} |
PACKAGED_Securityplugin.xmlsecurity.xmlUPDATED pkgV1ObjectActions(action)Old expression Code Block |
---|
/* Object has appropriate tag */
(
/* Tous */
CONFIGHASTAG(objectname, 'pkg/security/secugroup/all')
OR
/* Qui ont l'action */
CONFIGHASTAG(objectname, CONCAT('pkg/security/secugroup/', LOWER(arguments.action)))
OR
(
/* Les droits de create,damimport,massimport sont liés à l'insert */
NBCOMMONELEMENTS(LOWER(arguments.action), 'create,damimport,massimport') > 0
AND
CONFIGHASTAG(objectname, CONCAT('pkg/security/secugroup/insert'))
)
OR
(
/* Le droit de multiupdate est lié à l'update */
LOWER(arguments.action) = 'multiupdate'
AND
CONFIGHASTAG(objectname, CONCAT('pkg/security/secugroup/update'))
)
)
AND
(
/* insert/create action */
(
NBCOMMONELEMENTS(LOWER(arguments.action), 'create,damimport,massimport,insert') > 0
AND
(
/* User has rights to create this kind of object if he has $anycreation or $newcreation (but not $copycreation) */
NBCOMMONELEMENTS(surfer.pkgsecurity_v1_objectdata, CONCAT('insert', ':', objectname, ':', '$anycreation'), ',') > 0
OR
NBCOMMONELEMENTS(surfer.pkgsecurity_v1_objectdata, CONCAT('insert', ':', objectname, ':', '$newcreation'), ',') > 0
)
)
OR
(
/* multiupdate/datavaluespicker action */
NBCOMMONELEMENTS(LOWER(arguments.action), 'datavaluespicker,multiupdate,update') > 0
AND
/* User has rights to datavaluespicker/multiupdate if he has right to update, but regardless of modifiers */
NBCOMMONELEMENTS(
REPLACE(
surfer.pkgsecurity_v1_objectdata,
CONCAT('update:', objectname, ':'),
CONCAT('update:', objectname, ',::')
) /* permet de passer de update:objectname:xx*/,
CONCAT('update:', objectname)
) > 0
)
OR
(
/* other actions */
NBCOMMONELEMENTS(LOWER(arguments.action), LOWER('broadcastVideo,defineVideoPoster,delete,editPicture,editVideoChapters,editVideoSubtitles,embed,manageVideoCallToActions,manageVideoRolls,order,sliceVideo,shareSocialNetworks,view')) > 0
AND
/* User has rights to other actions if he has right to other actions, but regardless of modifiers */
NBCOMMONELEMENTS(
REPLACE(
surfer.pkgsecurity_v1_objectdata,
CONCAT(LOWER(arguments.action), ':', objectname, ':'),
CONCAT(LOWER(arguments.action), ':', objectname, ',::')
),
CONCAT(LOWER(arguments.action), ':', objectname)
) > 0
)
) |
New expression Code Block |
---|
/* Object has appropriate tag */
(
/* Tous */
CONFIGHASTAG(objectname, 'pkg/security/secugroup/all')
OR
/* Qui ont l'action */
CONFIGHASTAG(objectname, CONCAT('pkg/security/secugroup/', LOWER(arguments.action)))
OR
(
/* Les droits de create,damimport,massimport sont liés à l'insert */
NBCOMMONELEMENTS(LOWER(arguments.action), 'create,damimport,massimport') > 0
AND
CONFIGHASTAG(objectname, CONCAT('pkg/security/secugroup/insert'))
)
OR
(
/* Le droit de multiupdate est lié à l'update */
LOWER(arguments.action) = 'multiupdate'
AND
CONFIGHASTAG(objectname, CONCAT('pkg/security/secugroup/update'))
)
)
AND
(
/* insert/create action */
(
NBCOMMONELEMENTS(LOWER(arguments.action), 'create,damimport,massimport,insert') > 0
AND
(
/* User has rights to create this kind of object if he has $anycreation or $newcreation (but not $copycreation) */
NBCOMMONELEMENTS(surfer.pkgsecurity_v1_objectdata, CONCAT('insert', ':', objectname, ':', '$anycreation'), ',') > 0
OR
NBCOMMONELEMENTS(surfer.pkgsecurity_v1_objectdata, CONCAT('insert', ':', objectname, ':', '$newcreation'), ',') > 0
)
)
OR
(
/* multiupdate/datavaluespicker action */
NBCOMMONELEMENTS(LOWER(arguments.action), 'datavaluespicker,multiupdate,update') > 0
AND
/* User has rights to datavaluespicker/multiupdate if he has right to update, but regardless of modifiers */
NBCOMMONELEMENTS(
REPLACE(
surfer.pkgsecurity_v1_objectdata,
CONCAT('update:', objectname, ':'),
CONCAT('update:', objectname, ',::')
) /* permet de passer de update:objectname:xx*/,
CONCAT('update:', objectname)
) > 0
)
OR
(
/* other actions */
NBCOMMONELEMENTS(LOWER(arguments.action), LOWER('broadcastVideo,defineVideoPoster,delete,editPicture,editVideoChapters,editVideoSubtitles,embed,i18nFieldsTranslate,manageVideoCallToActions,manageVideoRolls,order,sliceVideo,shareSocialNetworks,view')) > 0
AND
/* User has rights to other actions if he has right to other actions, but regardless of modifiers */
NBCOMMONELEMENTS(
REPLACE(
surfer.pkgsecurity_v1_objectdata,
CONCAT(LOWER(arguments.action), ':', objectname, ':'),
CONCAT(LOWER(arguments.action), ':', objectname, ',::')
),
CONCAT(LOWER(arguments.action), ':', objectname)
) > 0
)
) |
WXM_ANALYTICS_V2plugin.xmlWXM_Multiupload_Configplugin.xmlUPDATED jsonConfigs: description: ~~format: {"s3Configs":[{"region":"eu-west-1","bucketName":"monbicket"}], "ftpConfigs":[{"url":"ftp://pipo"}]}~~ --> format: {"s3Configs":[{"region":"eu-west-1","bucketName":"monbicket"}], "ftpConfigs":[{"url":"<ftp://pipo"},> {"url":"<ftp://pipo",> "ftpsUse":true, "ftpsImplicit":true, "ftpsProtocol":"TLS|SSL","ftpsTrustmgr":"all|valid|none"}]}
WXM_Multiupload_Configplugin.xmlParameters: UPDATED jsonConfigs: description: ~~format: {"s3Configs":[{"region":"eu-west-1","bucketName":"monbicket"}], "ftpConfigs":[{"url":"ftp://pipo"}]}~~ --> format: {"s3Configs":[{"region":"eu-west-1","bucketName":"monbicket"}], "ftpConfigs":[{"url":"<ftp://pipo"},> {"url":"<ftp://pipo",> "ftpsUse":true, "ftpsImplicit":true, "ftpsProtocol":"TLS|SSL","ftpsTrustmgr":"all|valid|none"}]}
|