Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared drafts in ticket zoom not usable if permission is granted through role assignment #4704

Closed
gojufhv opened this issue Jul 4, 2023 · 1 comment

Comments

@gojufhv
Copy link

gojufhv commented Jul 4, 2023

Used Zammad Version

6.0

Environment

  • Installation method: apt repo
  • Operating system: Debian 11 AMD64
  • Database + version: psql (PostgreSQL) 13.11 (Debian 13.11-0+deb11u1)
  • Elasticsearch version: 7.17.11
  • Browser + version: Firefox 114.0.2

Actual behaviour

Unable to see other shared drafts or to save shared drafts. It is possible a regression of #4071

The user needs to have access granted to the group directly via the user profile, access granted via a role is not accepted.

Expected behaviour

If I create a shared draft of a new ticket, the draft is saved if the access to the group is granted via a given role.

Steps to reproduce the behaviour

  • Create a role with full access to group
  • Assign the role to user
  • Assure that user has no access to group directly via user profile
  • Draft new ticket
  • Enter name of draft and try to save it

Support Ticket

No response

I'm sure this is a bug and no feature request or a general question.

yes

@fliebe92
Copy link
Contributor

fliebe92 commented Jul 5, 2023

I, [2023-07-05T07:40:51.353827#98494-75180]  INFO -- : not allowed to index? this TicketsSharedDraftStartsController (Pundit::NotAuthorizedError)
app/controllers/application_controller/authorizes.rb:10:in `authorize!'
app/controllers/application_controller/authenticates.rb:143:in `authenticate_and_authorize!'

@fliebe92 fliebe92 added this to the 6.0.1 milestone Aug 17, 2023
@fliebe92 fliebe92 changed the title Regression of "Apply via role granted permission while creating shared draft #4071" Shared drafts in ticket zoom not usable if permission is granted through role assignment Aug 17, 2023
zammad-sync pushed a commit that referenced this issue Aug 18, 2023
…s granted through role assignment.

Co-authored-by: Rolf Schmidt <rolf.schmidt@zammad.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants