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

Roles can only see teams where they are teamleads #4803

Open
3 tasks done
bhmarscheck opened this issue Apr 18, 2024 · 3 comments
Open
3 tasks done

Roles can only see teams where they are teamleads #4803

bhmarscheck opened this issue Apr 18, 2024 · 3 comments
Labels

Comments

@bhmarscheck
Copy link

Describe the issue

I am trying to create a roll with permissions that allows to create activities that are only visible by a selected team.
As described in issue #3323 adding users to a team is a "workaround" to get them to be able to see a team and therefor create and permission activities for that team. This is fine by me.

When I don't understand this description from the documentation wrong:

view_team | See teams administration
view_team_member | View the teamleads and members for the teams of the current user

giving these permissions should make the list of teams a user is part of visible to him (at least to my understanding of the documentation), but it appears that the user can only see the teams where he is selected as a temleader.

Do I understand the permissions wrong or is this a bug? I could work around this by making everyone teamleaders of all the groups they are members since, as of now, we don't have special permissions for teamleaders only, but this would force us to keep it that way.

This is reproducible on the KIMAI demo instance and on our self hosted instance (2.12.0 and PHP 8.3.6)

I already tried

Kimai version

2.12.0

How do you run Kimai?

Shared-Hosting

Which PHP version are you using?

Other (please mention below)

Logfile

No response

Screenshots

No response

@kevinpapst
Copy link
Member

kevinpapst commented Apr 18, 2024

but it appears that the user can only see the teams where he is selected as a temleader

Where do you want to see the teams? Which screen / dropdown ... do you think behaves wrong?

@bhmarscheck
Copy link
Author

bhmarscheck commented Apr 18, 2024

image
image

From admin account (below) you can see that EM is in a team but EM page (above) does not show any teams at all resulting in the drop down (first picture) not having any entries. Again EM has both view_team and view_team_member permissions enabled.

image

@kevinpapst
Copy link
Member

Honestly, there are over 100 permissions and I need to find out what this permission was all about.

Bug t for the clarification 👍 I will look into this.

@kevinpapst kevinpapst changed the title Rolls can only see teams where they are teamleads Roles can only see teams where they are teamleads Apr 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants