Forum

Thread tagged as: Question

Editors and deleting assets

I realise that users with the Editor role cannot delete assets. But is there a way I can change this?

Seems a lot more destructive to having to make the client an admin so they can delete assets, than giving them the ability to delete assets.

Juan Fernandes

Juan Fernandes 0 points

  • 4 years ago

Hi Juan

You can edit the privileges of the editor role to enable "manage assets". You can set up any number of roles that suit your needs. The ones in the default install are just examples.

Kind regards

Jon

Thanks Jonathan

I have done this, but it still does not allow the Editor to delete assets.

Jonathan Elliman said:

Hi Juan

You can edit the privileges of the editor role to enable "manage assets". You can set up any number of roles that suit your needs. The ones in the default install are just examples.

Kind regards

Jon

Yeah you're right sorry I just tried it and it's limited to admin. Could you make a super editor using an admin role?

Jon

Drew McLellan

Drew McLellan 2638 points
Perch Support

What's the issue you're trying to address by deleting assets?

The client would like to be able to delete images that he has uploaded. He also isn't able to delete Galleries when he is an Editor.

Drew McLellan

Drew McLellan 2638 points
Perch Support

By deleting images, what problem is he trying to solve?

I haven't asked him.

But I know, with the Galleries, once a car has sold and been removed from the sold section, he wants to remove the gallery associated with that car. If he has 100s of cars, he needs only the current cars' galleries to show up in the dropdown in the vehicle template.

<perch:content id="album" type="albumlist" label="Vehicle Gallery" suppress="true" order="4" />
Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, let us know when you've got more sense of the problem we need to solve.

The problem is simple. My client wants to be able to delete images.

And for him to do that I've had to make him an admin which means he is now able to delete regions etc.

So is there a way I can allow an editor to delete assets without making them an admin?

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's more the symptom and not the cause, but whatever.

What's stopping you enabling that privilege for his role?

I have checked Manage Assets for the Editor role, but that still does not allow the user to delete assets.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you post your diagnostics? There's a specific role for deleting assets.

Extended Diagnostics

Perch information

Perch: 3.0
Production mode: Production (100)
Installed apps: content (3.0), assets (3.0), categories (3.0), perch_forms (1.9), perch_gallery (2.8.9), perch_mailchimp (3.1)
DB driver: PDO
DB tables: perch3_categories (0), perch3_category_counts (0), perch3_category_sets (0), perch3_content_index (2235), perch3_content_items (246), perch3_content_regions (36), perch3_forms (3), perch3_forms_responses (5), perch3_gallery_albums (12), perch3_gallery_image_versions (1611), perch3_gallery_images (246), perch3_mailchimp_campaigns (0), perch3_mailchimp_imports (0), perch3_mailchimp_lists (1), perch3_mailchimp_subscribers (4), perch3_mailchimp_subscriptions (4), perch3_mailchimp_webhooks (1), perch3_menu_items (11), perch3_navigation (0), perch3_navigation_pages (0), perch3_page_templates (1), perch3_pages (8), perch3_resource_log (446), perch3_resource_tags (0), perch3_resources (107), perch3_resources_to_tags (0), perch3_settings (25), perch3_user_passwords (0), perch3_user_privileges (35), perch3_user_role_privileges (11), perch3_user_roles (2), perch3_users (3)
Users: 3
App runtimes:
<?php
    $apps_list = [
    'perch_gallery',
    'perch_forms',
    'perch_mailchimp',
    ];
Scheduled tasks for perch_mailchimp: import_data (1 mins)
Editor plug-ins:
H1: 844a7b6343bbe7ce483b2deb890f8250
L1: 4956882b7313c9147de4a8f1bf41f5fb
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
headerColour: #111111
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 1
lang: en-gb
installedAt: 3.0
update_3.0: done
latest_version:
on_sale_version:
headerScheme: dark
dashboard: 1
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
logoPath: /cms/resources/cms-logo.png
perch_gallery_update: 2.8.5
perch_gallery_bucket_mode: single
perch_gallery_bucket: default
perch_mailchimp_api_key: 0069f0339c917ed83e4682184404eb8f-us15
perch_mailchimp_campaign_url: /mailchimp/campaign/{campaignSlug}
perch_gallery_basicUpload: 0
perch_mailchimp_secret: 1ed0698
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: cl10-lp
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: cl10-lp
PERCH_DB_PREFIX: perch3_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: info@clientdomain.com
PERCH_EMAIL_FROM_NAME: Lusso Prestige
PERCH_LOGINPATH: /cms
PERCH_PATH: /home/sites/clientdomain.com/public_html/cms
PERCH_CORE: /home/sites/clientdomain.com/public_html/cms/core
PERCH_RESFILEPATH: /home/sites/clientdomain.com/public_html/cms/resources
PERCH_RESPATH: /cms/resources
PERCH_HTML5: 1
PERCH_DEBUG: 1
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_ASSET_VERSION: c4c70b856b16830782ef
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/sites/clientdomain.com/public_html/cms/templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
PERCH_RWD: 1
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_DEFAULT_BUCKET: default
PERCH_TRANSLATION_ASSIST:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_PRIV_ASSIST:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
Hosting settings

PHP: 5.6.30
Zend: 2.6.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
MySQL server: 5.5.5-10.0.30-MariaDB
Free disk space: 2.52 TB
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, SPL, iconv, pcntl, readline, Reflection, session, standard, shmop, SimpleXML, sockets, mbstring, tokenizer, xml, cgi-fcgi, bcmath, curl, dom, enchant, fileinfo, gd, imap, intl, json, ldap, exif, mcrypt, mssql, mysqlnd, mysql, mysqli, odbc, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, recode, soap, sqlite3, sysvmsg, sysvsem, sysvshm, tidy, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, mhash, ionCube Loader, Zend Guard Loader
GD: Yes
ImageMagick: No
PHP max upload size: 64M
PHP max form post size: 64M
PHP memory limit: 128M
Total max uploadable file size: 64M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
PATH: /usr/local/bin:/usr/bin:/bin
UNIQUE_ID: WRGRPX8AAAEAAaMHQcoAAAAl
SCRIPT_URL: /cms/core/settings/diagnostics/
SCRIPT_URI: https://www.clientdomain.com/cms/core/settings/diagnostics/
HTTP_HOST: www.clientdomain.com
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_REFERER: https://www.clientdomain.com/cms/core/settings/diagnostics/add-ons/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-GB,en-US;q=0.8,en;q=0.6
HTTP_COOKIE: _ga=GA1.2.1566226750.1492678300; _gid=GA1.2.1305357031.1494239829; PHPSESSID=bjltcehkfd906idleputd7v4r4; cmsa=1
HTTP_CONNECTION: close
SERVER_SIGNATURE: <address>Apache/2.4.23 (Unix) Server at www.clientdomain.com Port 80</address>
SERVER_SOFTWARE: Apache/2.4.23 (Unix)
SERVER_NAME: www.clientdomain.com
SERVER_ADDR: 10.0.1.35
SERVER_PORT: 80
REMOTE_ADDR: 149.255.173.74
DOCUMENT_ROOT: /home/sites/clientdomain.com/public_html
REQUEST_SCHEME: http
CONTEXT_DOCUMENT_ROOT: /home/sites/clientdomain.com/public_html
SERVER_ADMIN: root@localhost
SCRIPT_FILENAME: /home/sites/clientdomain.com/public_html/cms/core/settings/diagnostics/index.php
REMOTE_PORT: 50360
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /cms/core/settings/diagnostics/?extended
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
PHP_SELF: /cms/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1494323517.6726
REQUEST_TIME: 1494323517
Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, you're fairly behind. Can you try updating to 3.0.4 - in that I've tried to make sure the delete privilege is forcibly labelled if it's not showing up.

Oh sorry I didn't realise I was already that far behind. Apologies.

That has indeed fixed the issue, the option Delete Assets is now there and when selected Editors can now delete assets, thanks.

What about being able to delete galleries? I don't suspect my client will need to do that very often, he made a few mistakes, but he now has the hang of it, so I'm sure he will be ok with not being able to delete them.

Drew McLellan

Drew McLellan 2638 points
Perch Support

We're not really adding functionality to Gallery from this point. Instead we're concentrating on Assets.

That's fine. Thank you for your support.

Drew McLellan said:

We're not really adding functionality to Gallery from this point. Instead we're concentrating on Assets.