Questions tagged [permissions]
The permissions tag has no usage guidance.
99 questions
0
votes
0
answers
5
views
How to move user from one group to another with GraphQL mutation
I am using Nextjs and GraphQL API of Craft CMS. I have a subscription system in my project. I want to move users from free to subscriber group after subscription. How can I do it with GraphQL mutation....
1
vote
0
answers
17
views
Creating a filesystem with 'semi' public URLs, to be used in templates
I have created a 'dashboard' for my clients with Twig templates and user groups with different permissions.
I have multiple users which can add images, which get uploaded to a file system created for ...
3
votes
1
answer
48
views
Is it possible to silo Users and their Content absolutely by site?
We have multiple sites defined in Craft and we want content editors to only have visibility of things that are relevant to the one site they've been assigned to.
I've set this up using a User Group ...
1
vote
1
answer
38
views
Craft 3 / 4 CP: Restrict users to specific user groups in Users view
I need to restrict access to users (not entries) of say AdminGroupA to be able to access and manage users of UserGroupA in the Control Panel. Right now, the user AdminGroupA can browse all of the ...
1
vote
1
answer
61
views
permission to access users only on specific user group
I would like to ask if there is a permission to view and edit the users on specific user group? or is there any plugin to do that?
example: I have user groups called "Class 1" and "...
0
votes
1
answer
72
views
How to alter CP entry edit form
On an entry edit form I'd like to alter the options in a multiselect field to be user relative. Is there something like a form_alter hook?
1
vote
1
answer
111
views
What are the minimum permissions to show the Craft debug toolbar?
To help validate a process is in place, we would like to allow a tester to login and view the Craft debug toolbar to see the logs. Currently, we have given the tester Admin, but we would like to only ...
1
vote
1
answer
112
views
How to hide the assets section of the control panel to specific user groups?
I need to hide the assets section of the control panel to a given user group.
Changing the group permissions to prevent them from viewing all asset volumes also prevents them from uploading assets in ...
1
vote
1
answer
107
views
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 ...
3
votes
0
answers
766
views
Craft in Docker throws '/app/web/cpresources doesn’t exist or isn’t writable by PHP'
I'm trying to deploy a Dockerized Craft CMS website. The basic setup is as follows:
craft running in Docker
nginx running on the server, using proxy_pass to point to docker container
The setup ...
2
votes
1
answer
736
views
Folder Permissions denied with Nitro
I’m getting this error when accessing/writing images. It’s only just come along suddenly after one or a couple of updates.
League\Flysystem\Exception
Impossible to create the root directory
"/...
1
vote
0
answers
311
views
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\...
1
vote
1
answer
480
views
Permission error on session_start() after 3.5 upgrade
On my dev box, I have php/nginx running as 'jim'. I've followed the suggestions on permissions in the install docs. (744 since php is running as 'jim')
I'm getting this error...
PHP Warning – yii\base\...
3
votes
1
answer
263
views
Protecting public assets
I'd like to manage access to assets with public URLs.
Is there a way to set permissions for anonymous users?
1
vote
0
answers
67
views
Assign user to group available even though not allowed? (Craft v3)
Working my way through the CMS to learn in more detail I'm currently at the users / permissions parts of the CMS. Here I just bumped into the following thing I don't understand:
I have a Users Group ...
2
votes
0
answers
125
views
Restricting entry editing in the admin section
We have custom permission setup where we have certain admins that are only allowed to edit specific entries. This is done by modifying the entries sources:
Event::on(
Entry::class,
Element::...
1
vote
1
answer
136
views
Directories and files being created by "root" user, inaccessible to CMS
I'm new to Craft and have been asked to support a live site that is running on it. I've run into a problem that seems to be due to files on the server being created by the wrong user.
The vast ...
1
vote
3
answers
1k
views
Restrict viewing front end to specific group permissions
How can I restrict content frontend to specific user groups?
There seems no sensible way to do this out of the box.
For example group permissions in CP are all about CP - there is no view option.
...
1
vote
2
answers
378
views
“Access Plugin” doesn't appear in Permissions list
Non-admin users are not able to access my plugin in the CP. With admin rights, everything is fine—the templates are accessible, but all the other users are getting 403.
I've tried to build the plugin ...
2
votes
1
answer
50
views
Permission for "Send an activation email now?" Option
So it looks like site admins have the ability to choose whether or not to send a new user an Activation Email through the "Send an activation email now?" checkbox option on the Register a new user ...
1
vote
2
answers
1k
views
Craft on WSL permissions error
For anyone installing install Craft on WSL (Windows Services for Linux)...
WSL has enough traction with developers that I decided to take the dive, but I'm having trouble getting permissions straight ...
1
vote
1
answer
509
views
New Install, Permission Errors With /storage
I've configured Apache vHosts on a local box and installed a Craft 3 website onto it. This new instance will serve as my "staging" environment for an upcoming website.
I've installed with composer ...
0
votes
1
answer
61
views
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-...
2
votes
1
answer
3k
views
Upload failed, fopen – failed to open stream: Permission denied
When trying to add assets in the live admin I get the following error:
Upload failed. The error message was: “fopen(assets/images/general/IMG-2483_190715_161352.jpeg): failed to open stream: ...
1
vote
1
answer
212
views
Restricting access to user groups with Control Panel access only
I know I can restrict template output to Admins only with :
{% if currentUser.admin ?? false %}
…and to any logged in user with:
{% if currentUser ?? false %}
And I’m aware of accessCp as a ...
1
vote
1
answer
159
views
Uploaded Assets always get 600 File Permission and are therefore not displayed (403 Error)
After a fresh manual Craft CMS install everything runs fine, except uploading Assets. Well, the uploading part works fine but uploaded assets always just get file permissions of 600 (adfrw) Group and ...
1
vote
2
answers
378
views
Multiple authors for an entry
The website I'm currently working on is a plattform where several 'subgroups' can post events but also have their own subpage. So the two affected secrions are 'event' and 'subgroup'.
Currently, every ...
1
vote
1
answer
125
views
RequirePermission not working
I'm using the requirePermission tag in the templates for my Craft multisite. I only want users who have access to 'edit' that site be able to view it.
My code is:
{% requirePermission('editSite: (...
1
vote
1
answer
318
views
Error: File to import not found or unreadable: ../../../../../lib/craftcms-sass/mixins
I have two Craft websites running locally and they both have broken css on the backend due to the error below. Every time I update it is temporarily fixed but after a few clicks or refreshes it's back ...
1
vote
1
answer
198
views
Restrict a users permission to only edit 'translatable' fields on a specific site?
We would like to have a 'translators' user group, where the members can edit only the 'translatable' fields, but not the non translatable things (images, categories etc).
May be i missed something, ...
1
vote
1
answer
53
views
Revoke user permissions but not change the usergroup
I have a client who would like to edit a users permissions. However instead of adding permissions on a per user basis, they would like to remove permissions for that user by unchecking the item. ...
2
votes
1
answer
204
views
Any reason why {% requirePermission 'editEntries:1' %} would stop working within the past week or so?
This worked fine last week when the site was in development:
{% requirePermission 'editEntries:1' %}
We made the site live a few days ago. I dont know if its related, but when I now go to pages with ...
1
vote
1
answer
412
views
Editing User Email Address
I created a user group that has full permissions for User options in the CP, i.e. all the boxed ticked. However, they are not able to edit a user's email address.
When changing the email field and ...
2
votes
1
answer
302
views
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 ...
1
vote
1
answer
226
views
How would one allow users to edit only some other users entries but not all? Linked via a related field
I have users that are assigned to an organisation. An organisation can have many users.
I would like users within the same organisation to be able edit entries (in this case projects) created by a "...
1
vote
1
answer
107
views
Can I use Craft to Manage Site Access?
User Access Question...
Can I use Craft to create users that can only use the site? These users would only be viewers of the content. They would NOT have access to Craft or any of its features.
...
1
vote
1
answer
119
views
Permissions needed to "edit image"?
What permissions do users need in order to access the "edit image" menu in assets?
Some users can't access this, but I can't see a specific permission for this listed under:
Settings > Users > User ...
1
vote
2
answers
46
views
Individual Content dripping per user
I am building a site where I need to give each individual user access to site content according to the user progression of content consuming.
For the example, User A has access to watch entry no.1, ...
0
votes
0
answers
985
views
Craft 3 admin panel only accessible when web/cpresources is exectuable for everyone
I’m trying to move a local Craft 3 site to a local server (hosted on 1&1).
The website itself runs fine, but for some reason I can only access the admin panel when the web/cpresources folder has ...
4
votes
2
answers
1k
views
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)...
1
vote
0
answers
30
views
Section permissions are ignored when linking to an entry
Users with permissions to limited sections can still “link to an entry” in any section from within the WYSIWYG (Redactor) editor. I'm using Craft 2 with a Rich Text (Redactor) field.
Is this a bug ...
2
votes
1
answer
485
views
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 ...
3
votes
1
answer
625
views
Can Auth0 be used for Craft Commerce user accounts?
I want to use Auth0 to provide a Single Sign On (SSO) for a couple of services I am integrating, one of which is Craft Commerce user accounts. Does Craft Commerce allow something like Auth0 for ...
2
votes
1
answer
1k
views
Output Checkbox Data on Template
If you have a checkbox field on an entry type, how do you display all the selected values for an entry in a template with twig?
Using this for page permissions via user groups. We have a plugin that ...
0
votes
0
answers
44
views
Charge Plugin - Subscribers have access to the Control Panel and any other subscribers personal information
We bought the Charge Plugin and got it up and running for a subscription service and the website has just gone live. We just realised any new user (subscriber) has access to all other users details ...
3
votes
1
answer
555
views
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' ...
1
vote
1
answer
387
views
Restict admin user permissions to only editing users he/she has created.
I'm thinking about building an app with Craft that requires users from a specific user group (Business User Usergroup) to be able to log in on the frontend and add users from another user group (...
1
vote
0
answers
421
views
For asset uploads, where should the 'temporary path" be created?
I just moved my Craft CMS site to production (MediaTemple DV) and I can't upload images to my asset sources. I get this error:
Error uploading the file: there was a problem creating the temporary ...
1
vote
1
answer
225
views
Craft Folder Error
I switched from Apache to Nginx. When I did that the Craft folder that was outside of the web root no longer was recognized. Checked around, dug into my .conf files and spent a boatload on this ...
1
vote
2
answers
882
views
{% block content %} is a no-go in template/subfolders
I’m on a mac running MAMP and my install is functional. Localhost will direct to and display files in “templates” but it wont fully cooperate with subfolders within templates, such as templates/news. ...