Made it so that modal doesn't show if you've signed the contract

This commit is contained in:
Michael Schmatz 2014-04-29 15:30:27 -07:00
parent eca35ce371
commit 294570cb1b

View file

@ -23,7 +23,7 @@ module.exports = class EmployersView extends View
checkForEmployerSignupHash: =>
if window.location.hash is "#employerSignupLoggingIn"
if window.location.hash is "#employerSignupLoggingIn" and not ("employer" in me.get("permissions"))
@openModalView application.router.getView("modal/employer_signup","_modal")
window.location.hash = ""
afterRender: ->