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

Insufficient Permission for HD Service Level Agreement #2002

Open
clayrisser opened this issue Sep 26, 2024 · 3 comments
Open

Insufficient Permission for HD Service Level Agreement #2002

clayrisser opened this issue Sep 26, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@clayrisser
Copy link

clayrisser commented Sep 26, 2024

Information about bug

I created a form for Guests to create support tickets. I am unable to get it to work.

Below is the code I created for it, but I an error.

        new_ticket = frappe.get_doc({
            "doctype": "HD Ticket",
            "subject": "Website Support Request",
            "description": message,
            "priority": "Urgent",
            "ticket_type": "Question",
            "status": "Open"
        })
        new_ticket.insert(ignore_permissions=True)
        frappe.db.commit()

Version

Frappe Builder: v1.11.5

Education: v15.3.2

ERPNext: v15.34.0

Frappe Framework: v15.8.1

Helpdesk: v0.10.0

Frappe HR: v15.28.0

Payments: v0.0.1

Scrum: v0.0.1

Installation method

Kubernetes

Relevant log output / Stack trace / Full Error Message.

'["Traceback (most recent call last):\\n File \\"apps/frappe/frappe/app.py\\", line 114, in application\\n response = frappe.api.handle(request)\\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\\n File \\"apps/frappe/frappe/api/__init__.py\\", line 49, in handle\\n data = endpoint(**arguments)\\n ^^^^^^^^^^^^^^^^^^^^^\\n File \\"apps/frappe/frappe/api/v1.py\\", line 36, in handle_rpc_call\\n return frappe.handler.handle()\\n ^^^^^^^^^^^^^^^^^^^^^^^\\n File \\"apps/frappe/frappe/h…esk/helpdesk/utils.py\\", line 23, in check_permissions\\n frappe.throw(f\\"Insufficient Permission for {doctype}\\", frappe.PermissionError)\\n File \\"apps/frappe/frappe/__init__.py\\", line 652, in throw\\n msgprint(\\n File \\"apps/frappe/frappe/__init__.py\\", line 617, in msgprint\\n _raise_exception()\\n File \\"apps/frappe/frappe/__init__.py\\", line 568, in _raise_exception\\n raise exc\\nfrappe.exceptions.PermissionError: Insufficient Permission for HD Service Level Agreement\\n"]'
@clayrisser clayrisser added the bug Something isn't working label Sep 26, 2024
@clayrisser
Copy link
Author

I tried creating a web form and I get the same error.

Screenshot 2024-09-26 at 4 37 34 PM

@clayrisser
Copy link
Author

I disabled Track SLA from the settings and I still get the error.

Screenshot 2024-09-26 at 4 38 50 PM

@clayrisser
Copy link
Author

@RitvikSardana do you know what causes this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant