[fix] role fix for schools setup (#6824)

This commit is contained in:
pratu16x7 2016-11-05 10:09:53 +05:30 committed by Rushabh Mehta
parent f5d8dd3b18
commit a43639edb4

View File

@ -105,7 +105,7 @@ def setup_roles(data):
if data.allow_roles:
# remove all roles other than allowed roles
data.allow_roles += ['Administrator', 'Guest', 'System Manager']
data.allow_roles += ['Administrator', 'Guest', 'System Manager', 'All']
for role in frappe.get_all('Role'):
if not (role.name in data.allow_roles):
remove_role(role.name)