Skip to content
Snippets Groups Projects
Commit 350db7ee authored by Allen Gilliland's avatar Allen Gilliland
Browse files

fixing issue where Exit Admin was showing up for non-admins.

parent af8456a2
No related branches found
No related tags found
No related merge requests found
......@@ -59,13 +59,15 @@ export default class ProfileLink extends Component {
Admin Panel
</a>
</li>
:
: null }
{ user.is_superuser && context === 'admin' ?
<li>
<a onClick={this.closeDropdown} className="Dropdown-item block text-white no-decoration" href="/">
Exit Admin
</a>
</li>
}
: null }
<li className="border-top border-light">
<a className="Dropdown-item block text-white no-decoration" href="/auth/logout">Logout</a>
</li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment