Questions tagged [permissions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
27 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
1answer
24 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
1answer
15 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-...
1
vote
1answer
109 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
1answer
27 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
1answer
20 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
2answers
24 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
1answer
40 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
1answer
109 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
1answer
53 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
1answer
23 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
1answer
41 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
1answer
35 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 ...
1
vote
1answer
67 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
1answer
31 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
1answer
33 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
1answer
58 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
2answers
33 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
0answers
277 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
2answers
351 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
0answers
14 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 ...
1
vote
1answer
164 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 ...
2
votes
1answer
236 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
1answer
200 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
0answers
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
1answer
285 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
1answer
181 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
0answers
208 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
1answer
164 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
2answers
467 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. ...
1
vote
1answer
130 views

Save user group event in Control panel

I have a plugin that saves users into a registration group like: if (craft()->request->isSiteRequest()) { //etc $groupId = '1'; craft()->userGroups->assignUserToGroups($user->...
1
vote
1answer
796 views

Running into permission issues using Vagrant on Ubuntu

I am having issues running CraftCMS in a vagrant environment. For reference: I am using ubuntu 17.04 Vagrant version 1.9.5 ubuntu/xenial64 (virtualbox, 20170525.0.0) Relevant initial ...
2
votes
1answer
60 views

Non-admins not authorized to create entry via frontend

I'm currently working on a page that should allow registered users to upload an image and save it as an entry in a section called "bildupload", together with some additional fields. Creating/saving ...
2
votes
1answer
43 views

limiting profiles to user groups

Can profile fields be limited to user groups in backend? It seems that if you want required front end fields for users registering then admins in backend have to have these as compulsory when creating ...
1
vote
1answer
392 views

Updated the PHP on server. Getting this error: Please ensure that $craftPath is set correctly

I am running Amazon Ec2 instance and tried updating the PHP on the site using this guide: http://brianshim.com/webtricks/update-amazon-ami-php5-3-to-php5-4/ And now this is the error I am receiving: ...
2
votes
0answers
91 views

Assigning category permissions to users

Is there a way to assign category permissions to users so that they can only view/edit those categories? I am currently looking at the following getEditableSections(), however, it's displaying all ...
2
votes
1answer
70 views

Is it possible to grant admin permissions via plugins through userPermissions->saveUserPermissions?

I'd like to add admin privileges to a user I'm creating like so: if($user == null) { $firstName = $_GET['firstName']; $lastName = $_GET['lastName']; $userName = $firstName . $...
2
votes
1answer
197 views

Setting up Craft on Linode Using Ubuntu

I'm setting up a Craft site on a Linode server has anyone had any experience with this? I'm struggling with which owner and user to set the var/www/html folder to with chown and what chmod settings to ...
1
vote
1answer
802 views

Issue uploading files

I have completed a website for a school who can't upload files when in school. When they upload a file the status bar loads the full way across the screen but at the top right it just keeps spinning. ...
0
votes
1answer
81 views

Override permissions for Craft Commerce saveProduct controller

I'm creating products using a frontend form which submits to commerce/products/saveProduct but it only works when I'm logged-in. They're really complicated products which need to be created on-the-fly....
2
votes
1answer
134 views

How can I separate assign user groups and permissions for users?

I've been here before Users allocating permissions beyond their own and the only solution offered was to vote for it as a feature request, which I did. But after 7 months there have only been 10 votes ...
3
votes
1answer
126 views

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 ...
1
vote
1answer
417 views

Entry publishing workflow

I am considering using Craft to develop a website for a client. One of the requirements is that members have access tot he backend to edit a single entry. Here is the use case: entry is created ...
4
votes
1answer
359 views

Allow a User Group to access plugin pages (without hasCpSection)

I'm facing a problem which, on the surface, seems similar to this thread... Like that other thread, I've found that a specific user group is unable to access my plugin's pages because the plugin is ...
1
vote
1answer
123 views

permissions userphotos “an unknown error occurred”

On my production server, each time I try to change or upload a user photo I get the "an unknown error occurred" message. If I check the logs, the error says it couldn't delete the folder of the ...
1
vote
1answer
71 views

Group specific entry from section

Can this be done? I have a section called Bookings. I have 2 user groups A and B. I would like both groups to have access to the section (bookings) but for some of the entries in the section, I would ...
5
votes
2answers
694 views

User permissions on a per-entry basis?

I have a Structure section that contains most of the pages on my website. We have users that need to edit only some of those pages. Since permissions are set on a per-section basis, right now they ...
2
votes
1answer
59 views

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 ...
0
votes
0answers
744 views

Folder Permissions for Assets, Cache, and temp

I have set 755 permissions to these folders and they are owned by the PHP web user. However, I'm still getting logs that say: [error] [application] Could not delete the file /var/www/craft/storage/...
4
votes
1answer
63 views

What SQL query can I run to remove all users assigned to a particular group?

So I have a user group containing a few thousand users and I want to remove all of those users with a SQL script. These users don't have access to the control panel and so don't have any Entries ...