6
votes
Accepted
Specifying administrators for localized sites?
Yes. you can:
Here I created a User group which has only access to the english part of the content.
As you can see these are checkboxes. So you can grant access to multiple languages at once.
5
votes
Accepted
Entry validation not working when Publish live changes permission is not checked
As carlcs said, this is already working as expected. Craft only enforces content validation rules for enabled entries (not including drafts), and most people prefer that behavior.
If you want to ...
5
votes
Accepted
Disable modification of assets title and name
I guess this feature request will solve my problem... in the future:
http://feedback.buildwithcraft.com/forums/285221-feature-requests/suggestions/7197199-ability-to-hide-or-disable-fields-based-on-a-...
5
votes
Accepted
Protecting public assets
This answer is a bit self-serving, but I'm the author of the Digital Download plugin. It allows you to control how and when assets are downloaded.
You can restrict downloads by a time period, maximum ...
4
votes
Accepted
Could I use categories for users instead of user groups?
If the users will never have access to the Craft CP then you can use categories or any other applicable field type (i.e. dropdown, radio buttons, tags, etc.) to create differentiation between the ...
4
votes
Accepted
{% requirePermission %} with OR condition
The {% requirePermission 'perm1' %} tag only supports a single permission. Behind the scenes it's effectively the same as:
{% if not currentUser.can('perm1') %}
{% exit 403 %}
{% endif %}
So I ...
4
votes
Asset file/folder permissions issue
Of course as soon as I post this, I find the answer.
/app/etc/config/defaults/general.php
'defaultFilePermissions' => 0664,
'defaultFolderPermissions' => 0775,
The default settings are ...
4
votes
Accepted
Hide (or disable) an entry field in CP depending on user group permission?
OK so here is my solution :
1/ define a custom permission for user groups
public function registerUserPermissions()
{
return array(
'updateTopNews' => array('label' => Craft::t('...
4
votes
Entry validation not working when Publish live changes permission is not checked
As other answers have touched on, the behaviour you're seeing is by design.
I've written a plugin called Always Validate which will make Craft validate all disabled entries and categories – including ...
4
votes
Appraising Craft CMS - newbie questions
Craft is the perfect CMS to handle everything you just pointed out.
Can Craft CMS handle bilingual sites? YES.
https://craftcms.com/docs/localization-guide
Is the Craft CMS admin available in ...
4
votes
Accepted
Restrict Permissions Per Entry Rather Than Per Section
There is a way - it's actually quite easy but you need to dig deep into Craft 3 to do it. In general: there is only one single Javascript function that fetches all elements for all index pages
...
4
votes
Any reason why {% requirePermission 'editEntries:1' %} would stop working within the past week or so?
Assuming you've recently updated to Craft 3.1, if you look in your userpermissions table you'll see that they're now lowercase and using UIDs rather than integer IDs, like this:
editentries:3bb69b06-...
4
votes
Accepted
Folder Permissions denied with Nitro
This could be because you are setting your Settings → Assets → your volume File System Path to an absolute location outside the VM.
Create an alias (or hard-set webroot) using:
'aliases' => [
'...
3
votes
Entry validation not working when Publish live changes permission is not checked
That's the idea behind Drafts, to store entries not yet ready to publish, unfinished ones so to speak.
I think it does make sense to not validate the fields. Good feature!
3
votes
Image upload failed- file not writable
On the server, check:
if the folder exists?
Check the folder permissions are set to 777 (could probably reduce to 755)
Within Craft:
In: Settings > Assets > Asset Sources - make sure File System ...
3
votes
Appraising Craft CMS - newbie questions
In addition to naboovalley's great answer...
Actualités (News) page: These are news listings on the page (image + date + title/text), which point to individual article pages when clicked.
Sure can....
3
votes
Unix permissions for Craft
I'm not sure if this helps, but here is how I (attempt) to manage deployments/installs.
I first create a user so I'm not using the root account. I tie that user to the apache user group. We'll call ...
3
votes
Accepted
Guest Entries - Saving entries as drafts
Edited based on comment below
No sorry I see what you mean now. But I think with entry drafts you need to have first published an entry, then you create a draft from that entry, essentially creating ...
3
votes
Accepted
Hide section on "Entries" tab
There’s no way to give a user group permission to create entries but not see those entries they created in the CP.
The only way to achieve what you want would be to write a plugin that provides its ...
3
votes
{% requirePermission %} with OR condition
{% requirePermission %} can only take on parameter. To make your code a little easier to manage, you might want to check for false in your conditional and exit. That way you wont have to worry about ...
3
votes
Accepted
Is it possible to restrict access to an asset to logged in users?
There is two similar plugins that look's like it might do the job (I have tested neither).
Internal Assets
MemberAssets
3
votes
Assign a user group to a structure entry. Restrict permission front end page to that same group
As far as I know there is no way to assign a 'group' using an entries fieldType. What I would likely do is create a category group called 'User Groups' (userGroups) that mirror my groups, with fields ...
3
votes
User permissions on a per-entry basis?
This might be considered more of a "workaround" than a technical solution, but I think it could actually solve your problem quite nicely...
You can use CP CSS and/or CP JS to show or hide certain ...
3
votes
Restrict Permissions Per Entry Rather Than Per Section
I had a similar problem where I needed to manage national and regional users groups where regional users should only see their own content. I didn’t like the idea of overriding the whole ...
3
votes
Accepted
Uploaded Assets always get 600 File Permission and are therefore not displayed (403 Error)
I just missed the "Assets in this volume have public URLs" lightswitch while setting up the volume :)
3
votes
Permission for "Send an activation email now?" Option
This feature was added in Craft 3.3.5, see the changelog.
If you update to this version, your users should be able to control whether the activation email is sent.
3
votes
Accepted
Restrict viewing front end to specific group permissions
If you setup a User Group with the same handle as the Site you want them to have access to, this could be fairly easy.
Let's say you have a site called "Acme" setup in the Sites settings. ...
2
votes
Accepted
Assign a user group to a structure entry. Restrict permission front end page to that same group
I decided to try a different approach.
I made two dropdown fields "studentlevel", one for the user where the admin can set the level from 1 to 12 and one in a matrix block with the video's, also from ...
2
votes
Hide section on "Entries" tab
Under Settings/Users, you can create user groups and set what each different group has access to. So if there is a channel or section you don't want one group touching, then you can toggle it off for ...
2
votes
Accepted
Enable client to add users to user group but not set permissions
doesn't work if the client doesn't have the "Assign user groups and permissions" checked.
That's not a limitation of the plugin, but a requirement of Craft.
Is there a way to force every new user ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
permissions × 95users × 23
craft3 × 10
assets × 10
control-panel × 10
user-groups × 10
plugin-development × 6
admin × 6
templating × 4
error-message × 4
sections × 4
upload × 4
installation × 4
entries × 3
install × 3
server × 3
craft-pro × 3
plugin-craftcommerce × 2
plugins × 2
localization × 2
php × 2
config × 2
image × 2
error × 2
craft-features × 2