def get_doctypes_for_user_permissions():
 return list(set([p.parent for p in get_valid_perms() if p.set_user_permissions]))

def get_doctypes_for_user_permissions ( ) : return list ( set ( [ p . parent for p in get_valid_perms ( ) if p . set_user_permissions ] ) )
get doctypes for the current user where user permissions are applicable .