Questions tagged [permissions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
2answers
780 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 ...
4
votes
2answers
467 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)...
4
votes
2answers
304 views

Disable modification of assets title and name

I want to disable the modification of both the file name and title of a specific asset type. How can I do that ?
4
votes
2answers
1k views

Assign a user group to a structure entry. Restrict permission front end page to that same group

I'm working on a website for a school. Each group has a specific page that has video's for that group only. Members of that group do not need access to the CP. First I noticed that I can only assign ...
4
votes
1answer
4k views

Unix permissions for Craft

Quick preface - i'm a new to managing my own servers. I'm on Ubuntu 14.04 running Apache. I ran into some problems setting up Craft which i was hoping someone might be able to shed a bit of light on ...
4
votes
1answer
389 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 ...
4
votes
1answer
75 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 ...
4
votes
0answers
2k views

runtime isn't writable by PHP. Please fix that

I keep getting the error: mydomain.com/craft/storage/runtime isn't writable by PHP. Please fix that. I am running Redhat, and have set the folder permissions to 777, any ideas? Thanks in advance.
3
votes
2answers
149 views

Appraising Craft CMS - newbie questions

I am looking into the idea of porting my first site into Craft CMS. It is the site of a friend/client who has a railway engineering consultancy, and it's currently running on another CMS (TidyCMS). ...
3
votes
2answers
681 views

Hide section on “Entries” tab

Is there a way to hide a section from the Entries tab based on user permissions? Whether it means creating a user permission in a plugin, or hiding the section selection tab from Entries altogether. ...
3
votes
1answer
472 views

Hide (or disable) an entry field in CP depending on user group permission?

So I am trying to hide (or disable) a field in the "Edit Entry" view in the CP. I know how to test a user group : {% if currentUser.isInGroup('groupHandle') %} But I cannot find a hook in Craft ...
3
votes
1answer
1k views

Image upload failed- file not writable

Trying to upload images and get the following error Upload failed for "filename". The error message was "Error uploading the file: The folder "/var/www/html/imgs/logos/" is not writable"
3
votes
1answer
504 views

Is it possible to restrict access to an asset to logged in users?

i.e. is there a type of loginRequired functionality for assets? Or even better - can I restrict access to a single group, or a require a certain permission? In the "permissions" tab for users/...
3
votes
1answer
342 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' ...
3
votes
1answer
135 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 ...
3
votes
1answer
299 views

Can Section access be restricted at Entry Type level?

I have a structure section that is driving the majority of a site, which works great with multiple entry types letting us handle different needs across different areas of the site. The client now ...
3
votes
1answer
374 views

Enable client to add users to user group but not set permissions

I need my client (typical editor account in CMS) to be able to add/modify/delete users in the CP. I don't want him to have access to groups/permissions for users, but I need to put every user he ...
3
votes
1answer
300 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
3answers
188 views

Entry validation not working when Publish live changes permission is not checked

when a user with no permission to publish is submitting a blank entry, the entry is saved anyway without any errors. Here is the permissions set to the user group: I have few required field as ...
2
votes
1answer
115 views

Specifying administrators for localized sites?

From what I've gleaned from other q&a, it's possible to set up multiple localized sites under one installation of Craft, but can you assign separate administrators to each? I'd like to set up ...
2
votes
1answer
189 views

Could I use categories for users instead of user groups?

I'm developing a sports league site. The roles I'm setting up are admins, coaches, and players - with myself being the "super" admin. This is my first Craft project, so right off the bat I started ...
2
votes
1answer
13 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 ...
2
votes
1answer
67 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 ...
2
votes
1answer
1k views

Asset file/folder permissions issue

Craft seems to create asset files and folders with permissions 775 and 664. My host has restrictions in place to not serve folders/files with these permissions. Where can I change this?
2
votes
1answer
80 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
180 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 ...
2
votes
1answer
940 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: ...
2
votes
1answer
308 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 ...
2
votes
1answer
78 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
47 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 ...
2
votes
1answer
231 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 ...
2
votes
1answer
63 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 ...
2
votes
0answers
98 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
121 views

Is there a master list of user/group permissions in Craft?

Has anybody compiled (or is it be possible to extract from the system) a master list of all the various permissions one can assign in Craft?
1
vote
2answers
140 views

{% requirePermission %} with OR condition

I need to use requirePermission tag to check if one or another permission is active. I want to reproduce something like this: {% if currentUser.can('perm1') or currentUser.can('perm2') %} <!--...
1
vote
2answers
34 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 ...
1
vote
2answers
578 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
622 views

Guest Entries - Saving entries as drafts

We're using Guest Entries for comments. When the user posts an entry it automatically appears as a published entry. I'd like to change this functionality so that the entry will enter as a draft until ...
1
vote
2answers
125 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
56 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
26 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
1answer
47 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
77 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
37 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, ...
1
vote
1answer
135 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
439 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 ...
1
vote
1answer
101 views

Users allocating permissions beyond their own

I have set up a user group named Administrators, to be used for the person in charge of managing the website day to day. But I didn't tick the Admin box as I don't want them to be able to access ...
1
vote
1answer
408 views

Cannot grant user group plugin permission without hasCpSection

A user group cannot be given access to a plugin without the plugin having hasCpSection. I don't want to give anonymous access to the plugin's methods; is there not an option to have a plugin listed ...
1
vote
2answers
67 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
1answer
117 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 ...