Questions tagged [permissions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
74 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
778 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
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 ...
0
votes
0answers
793 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
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 ...
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 ...
0
votes
1answer
112 views

Craft User Permissions in subsites

I'm still new to CraftCMS and still learning about site structure. The site that I am asking about below is not (yet?) in CraftCMS: Our site is composed of many subsites which have different users ...
0
votes
1answer
1k views

How possible is it to set write permissions on storage folder on symlinked install?

I have setup a site with a symlinked dir on nginx ubuntu server. When I access the root of the site I get this: /usr/share/nginx/html/releases/*********/craft/storage isn't writable by PHP. Please ...
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 ...
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
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). ...
1
vote
1answer
807 views

PHP 500 Error On One-click Update

I am trying to use the one-click update feature and continually am getting a 500 error when attempting retrieve available updates on staging server. All my permissions work correctly as my craft ...
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 ...
0
votes
1answer
67 views

Can a non-admin add Entry types into a section?

Is there a way to allow a user to edit sections without making them site Admins? For example, I have a couple of users that I want to allow them to create new entry types within a Channel, but I don’t ...
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 ...
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 ...
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 ...
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 ?
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 ...
1
vote
1answer
619 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 ...
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
2answers
680 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. ...
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.
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?
0
votes
1answer
114 views

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 ...
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') %} <!--...
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 ...
0
votes
1answer
106 views

Save Group Permissions

I'm trying to programmatically set group permissions. I came across the method saveGroupPermissions(). According to the documentation all you have to do is pass in the group ID and then an array of ...
1
vote
1answer
186 views

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

Access-rights at lower granularity than section?

I would like to make a page where different groups of users would only have access to the entries created by their own group. Now I can create a group and give it access to a certain section, but ...
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?
3
votes
1answer
503 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/...
1
vote
1answer
332 views

Performing Image Transformations Locally

Is there any reason why image transformations might not be working locally? I just get a bunch of these "http://site.dev/cpresources/transforms/7 404 (Not Found)" as error messages. The image ...
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 ...

1
2