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

Configuration of roles to add/edit customers, projects, activities... #479

Closed
blochwitz opened this issue Dec 20, 2018 · 18 comments
Closed
Labels

Comments

@blochwitz
Copy link

Hi Kevin,

thanks for publishing the new release with global activities. It is a essential feature for us...

In Kimai V1 it was possible to create/configure user roles to enable/disable tasks like adding new customers, projects, activities but in Kimi V2 we can't find that kind of configuration for roles?!

We need this feature to assign rights to roles to enable/disable the configuration of customers, projects (e.g. for Role „User“) or activities (e.g. for Role „Teamleader“ or „“) and hope it will be a part of the next release...

@kevinpapst
Copy link
Member

You can already configure the roles for a user.
And you can already configure the permissions for a user:
https://github.com/kevinpapst/kimai2/blob/master/var/docs/permissions.md
What else are you missing?

@blochwitz
Copy link
Author

Hi Kevin,

thanks a lot.

Is there a way to reload the configs / rebuilding the Symfony cache on a web server without access via ssh?

@kevinpapst
Copy link
Member

Try to delete the directory var/cache/prod/

@blochwitz
Copy link
Author

After deleting the directory, kimai doesn't work anymore...

@kevinpapst
Copy link
Member

Check the log file at var/log/prod.log - I assume the Webserver has no permissions to create the directory. Check the permissions for var/cache/

@blochwitz
Copy link
Author

There is no log file at var/log/. And i set the permission for the cache folder to 777 and it doesn't help...

@kevinpapst
Copy link
Member

No log file at all? Thats weird.
Do you have access to your server logs? Whats in there?
And how did you setup Kimai without SSH access? Probably you need to redo this process.
You are using a setup that I don't know and don't support, so I can just guess what mighty help, sorry!

@blochwitz
Copy link
Author

Hi Kevin,

i setup Kimai locally on a mac and transfered it via FTP to the webserver (https://github.com/kevinpapst/kimai2/blob/master/var/docs/installation.md#ftp-installation).

So i try to redo this process and hope that reloading the cache will works.

@blochwitz
Copy link
Author

blochwitz commented Jan 9, 2019

Hi Kevin,

i'd redo the setup of Kimai via FTP and after creating local.yaml and deleting the directory /var/cache/prod/ a reload of the cache works. I changed the local.yaml and deleted the directory again but then the reload of the cache doesn't work anymore.

@blochwitz
Copy link
Author

Hi Kevin,

reloading of the cache works now and the cause of error was inside the local.yaml (tabs).

Configure the permission map for role_user and adding sets like activities or projects won't work after reloading the cache (users with role USER_ROLE won't be able to see/access the activities/projects administration in the backend menu).

My local.yaml contains:

permissions:
maps:
ROLE_USER: [ACTIVITIES,PROJECTS,CUSTOMERS,TIMESHEET,PROFILE]

@kevinpapst
Copy link
Member

Hm, you found a bug.
So your users should be access to these screens, but the admin menu is only rendered for USER_TEAMLEAD and above. I'll change that.

@kevinpapst kevinpapst added the bug label Jan 15, 2019
@blochwitz
Copy link
Author

Perfect. Until you've fixed that i have to assign USER_TEAMLEAD to all users?!

@blochwitz
Copy link
Author

Maybe it's better to place the buttons (for users) outside of the admin menu? So it will be more easy to organize activities, customers...

@kevinpapst
Copy link
Member

From my perspective, ROLE_USER shouldn't have the permission to reach these screens.
In the future I will add options for reports/statistics, so we should think about your use-case and see if there are other ways available to achieve your goal.

But on the other hand, maybe the admin menu could be restructured. I'll think about it.

@kevinpapst
Copy link
Member

Fixed, you could update to the latest version

@blochwitz
Copy link
Author

Okay, thanks. When will it be released?

@kevinpapst
Copy link
Member

A release is nothing more than a random tag on master for the non-tech guys ;-)
I want to merge the open PRs and release it soon, but you can use master anytime.

@lock
Copy link

lock bot commented Mar 18, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.

@lock lock bot locked and limited conversation to collaborators Mar 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants