@frappe.whitelist()
def get_perm_info(role):
 from frappe.permissions import get_all_perms
 return get_all_perms(role)

@ frappe . whitelist ( ) def get_perm_info ( role ) : from frappe . permissions import get_all_perms return get_all_perms ( role )
get permission info .