Menu
SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Employees module can be edited by non-admin users

Employees module can be edited by non-admin users 4 days 9 hours ago #83262

  • rafaelpts
  • rafaelpts's Avatar
  • Offline
  • New Member
  • Posts: 5
  • Karma: 0
Hi

I need to configure so that the Employees module can be edited by non-admin users.

Currently the user can edit only his own registry, I need it to edit information from other users as well.

I verified that giving admin access to the users module I would achieve this, but I want the user to have edit access only in the employees module.

Can anybody help me?
The administrator has disabled public write access.

Employees module can be edited by non-admin users 3 days 16 hours ago #83292

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 9833
  • Thank you received: 1468
  • Karma: 349
Can I ask you what this is for? I am wondering if it wouldn't be simpler to just create a new custom module in Module builder, based on the Person type of module, and use it for whatever purposes you want.

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.

Employees module can be edited by non-admin users 3 days 15 hours ago #83301

  • rafaelpts
  • rafaelpts's Avatar
  • Offline
  • New Member
  • Posts: 5
  • Karma: 0
The idea of ​​using the Employees module is because it lists the users of the system, if it were possible to build a module and it lists the users would also solve.

it's possible?
The administrator has disabled public write access.

Employees module can be edited by non-admin users 3 days 13 hours ago #83310

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 9833
  • Thank you received: 1468
  • Karma: 349
You can have a Workflow to create a record in a custom module whenever a User record gets created. But that might be too complex to manage.

Maybe you can read this and see if your data design is really appropriate:

pgorod.github.io/Concepts-Users-Employees/

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.

Employees module can be edited by non-admin users 3 days 13 hours ago #83313

  • rafaelpts
  • rafaelpts's Avatar
  • Offline
  • New Member
  • Posts: 5
  • Karma: 0
I'll summarize what I need, maybe it will be clearer.

I created a "goal per year" field in the users module, which for administrators works fine the changes over there.

but I have a user who is not admin but could view and change this field.

I thought about creating a module and creating a "goal per year" field and
maybe relate to the "users module", but I do not know how to get this value related.

Ex: $value = $current_user-> goal_per_year;
The administrator has disabled public write access.

Employees module can be edited by non-admin users 3 days 12 hours ago #83322

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 9833
  • Thank you received: 1468
  • Karma: 349

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.

Employees module can be edited by non-admin users 3 days 11 hours ago #83326

  • rafaelpts
  • rafaelpts's Avatar
  • Offline
  • New Member
  • Posts: 5
  • Karma: 0
I tried, until it even opens the editing page, but when it saves, it does not change the value. :(
The administrator has disabled public write access.

Employees module can be edited by non-admin users 3 days 11 hours ago #83327

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 9833
  • Thank you received: 1468
  • Karma: 349
Do the other employee fields save correctly? Is it only your new custom field that doesn't save?

When you do a Quick Repair and Rebuild, do you see a button on the bottom to sync database with vardefs? If so, press it.

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
Last Edit: 3 days 11 hours ago by pgr. Reason: add sentence
The administrator has disabled public write access.

Employees module can be edited by non-admin users 3 days 11 hours ago #83328

  • rafaelpts
  • rafaelpts's Avatar
  • Offline
  • New Member
  • Posts: 5
  • Karma: 0
- no fields can be saved.
I saw that there is a file: /modules/Employees/save.php
it might be something la.

- I do not see the button informed when I'm going to repair

Thank you for helping me.
The administrator has disabled public write access.

Employees module can be edited by non-admin users 2 days 18 hours ago #83371

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 9833
  • Thank you received: 1468
  • Karma: 349
I'm sorry, I don't know what could be the problem and I am afraid I don't have time to go and investigate, it require debugging through the code...

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.
Time to create page: 0.042 seconds
Powered by Kunena Forum