present flash message when new portfolio member is added

This commit is contained in:
dandds
2019-03-26 14:21:52 -04:00
parent 836fdbdcd2
commit c7ac967870
7 changed files with 18 additions and 10 deletions

View File

@@ -84,7 +84,7 @@ def make_flask_callbacks(app):
def _set_globals():
g.current_user = None
g.dev = os.getenv("FLASK_ENV", "dev") == "dev"
g.matchesPath = lambda href: re.match("^" + href, request.path)
g.matchesPath = lambda href: re.search(href, request.full_path)
g.modal = request.args.get("modal", None)
g.Authorization = Authorization
g.Permissions = Permissions