mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-18 20:49:19 +00:00
[website] [fix] fixes in support ticket and profile pages, when using guest user login
This commit is contained in:
@@ -114,7 +114,7 @@
|
|||||||
"ticket": {
|
"ticket": {
|
||||||
"no_cache": true,
|
"no_cache": true,
|
||||||
"template": "app/website/templates/pages/ticket",
|
"template": "app/website/templates/pages/ticket",
|
||||||
"get_website_args": "support.doctype.support_ticket.support_ticket.get_website_args"
|
"args_method": "support.doctype.support_ticket.support_ticket.get_website_args"
|
||||||
},
|
},
|
||||||
"tickets": {
|
"tickets": {
|
||||||
"template": "app/website/templates/pages/tickets"
|
"template": "app/website/templates/pages/tickets"
|
||||||
@@ -122,6 +122,10 @@
|
|||||||
"writers": {
|
"writers": {
|
||||||
"template": "app/website/templates/pages/writers",
|
"template": "app/website/templates/pages/writers",
|
||||||
"args_method": "website.helpers.blog.get_writers_args"
|
"args_method": "website.helpers.blog.get_writers_args"
|
||||||
|
},
|
||||||
|
"profile": {
|
||||||
|
"no_cache": true,
|
||||||
|
"template": "app/website/templates/pages/profile"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"generators": {
|
"generators": {
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ def get_tickets():
|
|||||||
webnotes.session.user, as_dict=1)
|
webnotes.session.user, as_dict=1)
|
||||||
return tickets
|
return tickets
|
||||||
|
|
||||||
def get_website_args():
|
def get_website_args():
|
||||||
bean = webnotes.bean("Support Ticket", webnotes.form_dict.name)
|
bean = webnotes.bean("Support Ticket", webnotes.form_dict.name)
|
||||||
if bean.doc.raised_by != webnotes.session.user:
|
if bean.doc.raised_by != webnotes.session.user:
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user