Add "Administer subscription types" permission

Created on 29 April 2021, about 3 years ago
Updated 12 March 2023, over 1 year ago

Problem/Motivation

Right now, the subscription types administration uses the "Administer subscriptions" permissions. This is not enough since you may want to give "Administer subscriptions" for roles and don't want them to administer subscription types.

Steps to reproduce

  1. Create a new role that has access to Commerce administration
  2. Give this role "Administer subscriptions"
  3. Create a new user with this new role
  4. They will be able to access subscription types administration

Proposed resolution

  1. Add a new "Administer subscriptions" permission
  2. Set it as the permission for accessing subscription types administration
πŸ“Œ Task
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡·Brazil recidive

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡±Netherlands huijse

    Patch #4 works.

    Test result:
    With: administer commerce_subscription
    You cannot access the subscription type configuration, but can see the subscription overview on:
    admin/commerce/subscriptions which was the point.

    With permission: administer commerce_subscription_types
    You get access to: admin/commerce/config/subscriptions/subscription-types

    Which is needed for admins to make configurations but not subscription managers.

  • Issue was unassigned.
  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    As a reminder - when you finish your work on an issue please set the "Assigned" field back to "Unassigned".

Production build 0.69.0 2024