Different roles and permissions to comment/track changes

Created on 16 February 2023, almost 2 years ago

Problem/Motivation

On our site we have different levels of user group that we would like to give different sets of permissions.

Steps to reproduce

Proposed resolution

I see ckeditor 5 cloud services come with roles and permissions: https://ckeditor.com/docs/cs/latest/guides/security/roles.html Is there a way for us to configure that in Drupal so we can allow our users to use real time collaborations at different permission level?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Active

Version

1.0

Component

Plugin: Collaboration

Created by

πŸ‡ΊπŸ‡ΈUnited States yuanyuan.zhang Rockville, MD

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

Comments & Activities

  • Issue created by @yuanyuan.zhang
  • πŸ‡΅πŸ‡±Poland salmonek

    Hi @yuanyuanzhang,

    Currently we do not support permissions for collaboration. This is something we will be investigating after 1.0.0 final release.

  • πŸ‡ΊπŸ‡ΈUnited States yuanyuan.zhang Rockville, MD

    Hi @salmonek,

    Thanks for the update! Is it something I can do in custom javascript to provide custom config for ckeditor5?

  • πŸ‡΅πŸ‡±Poland salmonek

    For custom config related to permissions you linked - https://ckeditor.com/docs/cs/latest/guides/security/roles.html you don't actually need any custom js.
    Permission config is embedded in access token which is being generated in Drupal\ckeditor5_premium_features\Generator\TokenGenerator class.

  • πŸ‡΅πŸ‡±Poland salmonek

    Hi @yuanyuanzhang,

    As for now we have released 1.1.0 version which bring permissions for non-realtime collaboration.

    Realtime collaboration permissions are also planned, but will require some updates in cloud services / on-premises server software.
    We'll notify once we have more info about that.

  • Status changed to Fixed about 1 month ago
  • πŸ‡΅πŸ‡±Poland salmonek

    Realtime permissions have been released in version 1.3.2
    Here β†’ is a configuration guide for the functionality.

  • Automatically closed - issue fixed for 2 weeks with no activity.

  • πŸ‡§πŸ‡·Brazil viniciusrp

    @salmonek I believe we have a bug on it.
    I updated the module to 1.3.2 and when I logged with an user with less privileges, but with access to the text-editor, the CKEditor thrown the message: "Access denied: You don't have enough permissions for this action.".

    The real-time collaboration permission is disabled and I continue getting this error.

    Do you have any idea about it?

  • πŸ‡΅πŸ‡±Poland salmonek

    Hi @viniciusrp
    Indeed there is a bug - we didn't add check whether permissions are enabled on access token generation.
    I'm attaching a quickfix to ignore permissions on token generation, so it's only meant for applications that don't want to use them in RTC. This won't go into official release. Instead this patch I'll implement proper configuration check later.

  • πŸ‡§πŸ‡·Brazil viniciusrp

    Hi @salmonek,
    Thanks for the patch.

    Do you have any issue to follow the final fix or it will be reopened?

Production build 0.71.5 2024