Craft CMS Asked by Marie Manandise on June 30, 2021
I’m using the comments plugin (https://plugins.craftcms.com/comments)
I’d like to define the ‘permissions’ settings via the config/comments.php
file but can’t find docs on the syntax to use.
The default reads
// Permissions
'permissions' => [],
which doesn’t give me much to go on.
Could someone please provide an example I could work out the correct syntax from?
Many thanks!
I've just updated the docs, but because it uses the UID of element "groups" it might be annoying in practice to use the config file to set this up, as it requires a bit of manual looking-up of these values.
As the plugin settings are stored in Project Config, you'll probably get the same value setting it through the control panel.
'permissions' => [
'craftelementsAsset' => [
// Volume UIDs
'33974e79-b3b6-47ec-af91-4519fe4985be',
'c194716f-aa74-40b6-8426-c835599cbe93',
],
'craftelementsCategory' => [
// Category Group UIDs
'a27827c8-4810-433c-acb9-261b53d46281',
'346194f0-6da8-4f46-a20b-795631ee9a5f',
],
'craftelementsEntry' => [
// Section UIDs
'a8d4bdf1-164e-4ddc-aaad-640026b8d3bf',
],
'craftelementsUser' => [
// User Group UIDs
'c23a4d8d-47f0-4e71-927c-d5897ec9c9f8',
],
],
Answered by crawf on June 30, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP