gameplan icon indicating copy to clipboard operation
gameplan copied to clipboard

Permission/Access issues

Open blaggacao opened this issue 1 year ago • 5 comments

image

blaggacao avatar Jun 25 '24 16:06 blaggacao

I really dont know the purposes of that page. It seems to show all the contacts on ERPNext, not just GP users (admin/member/guest)

huembw avatar Jul 17 '24 02:07 huembw

I can't say for sure, but I think it aims to facilitate user management and discovery within GP.

blaggacao avatar Jul 17 '24 04:07 blaggacao

@huembw something is off with some of your email automation.

blaggacao avatar Jul 25 '24 12:07 blaggacao

@blaggacao This is probably because when a new user is created, a User Profile is also created via after_insert hook. We should probably have a configuration for this.

netchampfaris avatar Nov 21 '24 20:11 netchampfaris

Maybe this is a good fit to create a predicate:

user_type: DF.Link | None

I think the framework creates System User & Website User, by default.

class UserType(Document):
	# begin: auto-generated types
	# This code is auto-generated. Do not modify anything in this block.

	from typing import TYPE_CHECKING

	if TYPE_CHECKING:
		from frappe.core.doctype.user_document_type.user_document_type import UserDocumentType
		from frappe.core.doctype.user_select_document_type.user_select_document_type import (
			UserSelectDocumentType,
		)
		from frappe.core.doctype.user_type_module.user_type_module import UserTypeModule
		from frappe.types import DF

		apply_user_permission_on: DF.Link | None
		custom_select_doctypes: DF.Table[UserSelectDocumentType]
		is_standard: DF.Check
		role: DF.Link | None
		select_doctypes: DF.Table[UserSelectDocumentType]
		user_doctypes: DF.Table[UserDocumentType]
		user_id_field: DF.Literal[None]
		user_type_modules: DF.Table[UserTypeModule]

blaggacao avatar Nov 22 '24 14:11 blaggacao