Address other comment on #413

- don't call has_access directly from template, pass a staff_access variable instead
This commit is contained in:
Victor Shnayder
2012-08-15 10:28:08 -04:00
parent 9a14af4ba1
commit 9425bbba60
5 changed files with 36 additions and 13 deletions

View File

@@ -28,7 +28,7 @@ def url_class(url):
% if user.is_authenticated():
<li class="profile"><a href="${reverse('profile', args=[course.id])}" class="${url_class('profile')}">Profile</a></li>
% endif
% if has_access(user, course, 'staff'):
% if staff_access:
<li class="instructor"><a href="${reverse('instructor_dashboard', args=[course.id])}" class="${url_class('instructor')}">Instructor</a></li>
% endif