Adding permissions

Created on 28 February 2023, over 1 year ago
Updated 7 March 2023, over 1 year ago

Add the ability to give more detailed permissions to the module.

It's about the ability to grant permission to edit only your own calendars and your own instances.

🌱 Plan
Status

Active

Version

2.2

Component

Code

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

Comments & Activities

  • Issue created by @Katarzyna_Starzynska
  • πŸ‡ΊπŸ‡ΈUnited States josh.fabean

    That all makes sense, should be able to get that added.

  • If you need help, a member of our team can help prepare it. However, it would need your support to make everything work properly.

  • πŸ‡ΊπŸ‡ΈUnited States josh.fabean

    Absolutely, that would be very appreciated. I won't be able to get anything moving on this for the next week.

    It should require adding those permissions to the bookable_calendar.permissions.yml, then adding checks for those in the AccessControlHandlers.

  • πŸ‡΅πŸ‡±Poland Mirek_Sabiniewicz

    Hi Josh

    Thanks for the information.

    The plan was very simple.
    I added to bookable_calendar.permissions.yml new definitions for view, create, edit and delete own calendar, openings and instances.
    I added permissions in the Access files.
    And I ran into a little problem. Database tables Calendar, openings and instances don't have a UID column? did i miss something?

  • πŸ‡ΊπŸ‡ΈUnited States josh.fabean

    Yes the currently we are not assigning uid to any of the entities, so your change will require that to be done. I can add that with the needed database migrations, or you can take a swing at it. I should have time this week to get some movement on this.

Production build 0.69.0 2024