Ability for cbv_admin to login from admin panel
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -65,7 +65,7 @@ use Exception, StdClass; | ... | @@ -65,7 +65,7 @@ use Exception, StdClass; |
| 65 | <div id="icon-users" class="icon32"><br /></div> | 65 | <div id="icon-users" class="icon32"><br /></div> |
| 66 | <h2>Editing: <?php echo $name; ?> | 66 | <h2>Editing: <?php echo $name; ?> |
| 67 | <?php if ($role=="member" && !empty($member_id)) { echo '<span class="admin-member-id"> ('.$member_id.')</span>'; }?> | 67 | <?php if ($role=="member" && !empty($member_id)) { echo '<span class="admin-member-id"> ('.$member_id.')</span>'; }?> |
| 68 | <?php if ($suser->getRole() == 'administrator'): ?> | 68 | <?php if (in_array($suser->getRole(), Array('administrator', 'cbv_admin'))): ?> |
| 69 | (<a href="<?php echo get_author_posts_url($user->ID); ?>?sulogin=1">Login</a>) | 69 | (<a href="<?php echo get_author_posts_url($user->ID); ?>?sulogin=1">Login</a>) |
| 70 | <?php endif; ?> | 70 | <?php endif; ?> |
| 71 | </h2> | 71 | </h2> | ... | ... |
-
Please register or sign in to post a comment