mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-06 23:10:26 +00:00
[minor] fixes for import conf
This commit is contained in:
@@ -91,7 +91,7 @@ class DocType():
|
||||
raise_exception=1)
|
||||
|
||||
from webnotes import conf
|
||||
if getattr(conf, "status", None) == "Trial":
|
||||
if (conf.get("status") or None) == "Trial":
|
||||
webnotes.msgprint(_("""Sending newsletters is not allowed for Trial users, \
|
||||
to prevent abuse of this feature."""), raise_exception=1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user