Browse files

removed tab for the edit page if interface is at second level. Change…

… by COlin Macarthur.
  • Loading branch information...
1 parent 55b9541 commit f31cf25b98659f4a5bed9482c25f00912fe40022 @mryand mryand committed with natepixel Feb 20, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 reason_4.0/lib/core/classes/admin/modules/sharing.php
View
2 reason_4.0/lib/core/classes/admin/modules/sharing.php
@@ -82,7 +82,7 @@ function _produce_borrowing_nav()
$nes->limit_tables();
$nes->limit_fields();
$ns = $nes->run_one();
- $show_edit = (reason_user_has_privs($this->admin_page->user_id,'edit') && empty($ns));
+ $show_edit = reason_user_has_privs($this->admin_page->user_id,'edit') && !$this->admin_page->is_second_level() && empty($ns) ? true : false;
/* $type = new entity($this->admin_page->type_id);
$name = $type->get_value('plural_name') ? $type->get_value('plural_name') : $type->get_value('name');

0 comments on commit f31cf25

Please sign in to comment.