Questions tagged [permissions]
96 questions
4
votes
2 answers
Restrict Permissions Per Entry Rather Than Per Section
Working in Craft 3, I have a requirement to restrict user access (in the CP) per Entry rather than per Section.
In this case Users in Craft will belong to Department (Channel) and Resources (Channel). They should only be able to administer the…
Ian Young
- 584
- 3
- 9
3
votes
1 answer
Permissions at field level. Can this be done?
I have a public registration form process which assigns a specific group/permissions 'eventeer' to a user. This user can then login and can enter/edit information in a 'shared' section. 'Shared' meaning both admins + eventeer groups use the same…
treetop55
- 103
- 5
3
votes
1 answer
What do some Craft permissions mean?
I'm documenting Craft permissions for internal use but there are some permissions that I'm not clear on.
"Access the site when the system is off" What system?
"Publish live changes" How can you do that?
Adrian Reid
- 33
- 3
2
votes
1 answer
Checking permission for editing entries from inside template
How do I check permission for editing entries belonging to a specific section?
When I try {{currentUser.can('editEntries:'~entry.sectionId) }}, it returns false - and I am sure that currentUser can edit entries from this section.
edit:
Its craft 3.1
Piotr Pogorzelski
- 1,286
- 7
- 18
2
votes
1 answer
What is the typical owner:group for Craft files and folders?
Using cpanel, apache. All requirements are met for Craft. On a typical default set up I believe that the public_html is user:nobody. What should the ../craft folder owner and group be? With what permissions? What about sub folders?
I getting 403…
Eric Snyder
- 531
- 6
- 14
2
votes
1 answer
Is there any way to set enable by default a permission on the registerUserPermissions hook?
When I create a permission using the registerUserPermissions hook I would like everyone, in all user groups have access to that permission. An admin has to take an explicit step to restrict access to that pemission. Something like this:
/**
*…
Andre L.
- 357
- 1
- 9
1
vote
1 answer
Permissions when crossing over from Windows to Mac
I'm trying to work locally on a Mac installation of Craft but keep getting permissions errors with Storage, and so on. I don't get these errors when working locally on Windows using these same files (synced using Dropbox).
Is there a way to fix this…
Clive Portman
- 2,908
- 17
- 36
1
vote
1 answer
Craft 2: Suspend user results in "Unauthorized You don’t have the proper credentials to access this page."
This pertains to a Craft v2.9.2 installation.
User X is an admin user. So she has permission for pretty much everything, except accessing site settings, etc.
For an unknown reason, User X is unable to suspend other users.
User X has all permissions…
inspirednz
- 143
- 5
1
vote
0 answers
Forbidden exception
Our users when they log in they are unable to see their photos why can this be happening? They log in and the photos don't appear.
2020-11-25 20:08:04 [-][-][-][error][yii\web\HttpException:403] yii\web\ForbiddenHttpException in…
Abaron
- 11
- 1
0
votes
1 answer
Retrieving all users with specified permission
With a $user object, we can verify the user against a permission setting with the can() method. However, how can I retrieve all users who have a specific permission, including those under a group with the permission.
This needs to be generic PHP…
evolution7_thoai
- 39
- 3
0
votes
1 answer
Is there an easy way to reset user permissions back to usergroup settings?
Is it a matter of clearing the userpermissions_users table?
Background: After initial authoring, we've cleaned up permissions for our usergroups, but the existing users have accumulated manually-added permissions as sections got added. Would be…
Carmela S
- 1
- 2