class CourseFeedback(Document):
def validate(self):
if frappe.session.user==‘Administrator’:
frappe.throw((“Hello admin”))
frappe.throw((frappe.session.role))
@jsukrut, the return of “frappe.db.get_value(“User”,{“name”:frappe.session.user},“full_name”)” is an object. Do you know how to parse the object to get the full name as a string? Thanks!