Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Peterson committed Aug 21, 2019
1 parent 1fd81b2 commit 6b1b115
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions flask_secure_admin/contrib/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

from .sqlsoup import (SQLSoupUserDataStore,
override___name___on_sqlsoup_model)
2 changes: 1 addition & 1 deletion flask_secure_admin/security/role_scaffolding.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def scaffold_form_respecting_roles(self):
role_only_columns = self.role_only_columns or dict()
super_only_columns = role_only_columns.get(SUPER_ROLE) or []
if current_user and not current_user.has_role(SUPER_ROLE):
exclude.extend(role_only_columns)
exclude.extend(role_only_columns[SUPER_ROLE])
converter = self.model_form_converter(self.session, self)
form_class = get_sqla_form(self.model, converter,
base_class=self.form_base_class,
Expand Down

0 comments on commit 6b1b115

Please sign in to comment.