Permission in Version 4

Hi There,

In version 3, we were able to use condition to define permission. For example, in version 3, one can add a Read permission on Employee doctype for "Department Head" role with condition "Department in Employee matches User Property department." This gives department head read access over for all employees from the same department. When a new employee gets added to the same department, the department head automatically able to see this new employee. How do you achieve the same in version 4?

Kind regards,
Mayur Patel



Note:

 

If you are posting an issue,

 

  1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
  2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
  3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.

     

    End of Note



    You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.

    To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/6b15c108-b0f9-44af-98e7-888d5b04f51a%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.

Hi,
Regarding, Role permission
-I think there is no difference between Version 3 and 4.

  • In version 4, you can also give Role permission
  1. Go to “Setup” module
  2. Go to " Users and Permission"
    3)Go to “User permission manager”. either “Add User Permission” or Edit permission
  3. Select User i.e Employee, Doc Type= Department
  4. Add User Permission , set “Value” and Add it Finally

You can refer this link also
https://erpnext.com/user-guide/setting-up/permissions/user-permissions

Shraddha Ranjane
New Indictrans Technology PVT LTD

Thanks Shraddha for your reply.