Skip to content

Commit

Permalink
Task group view restricted from inner page URLS
Browse files Browse the repository at this point in the history
  • Loading branch information
Andola-Chinmaya committed Jul 7, 2022
1 parent c5c956d commit ec81aeb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions app/View/Elements/header_inner.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -279,13 +279,13 @@ if( $is_active_proj || (SES_TYPE==3)){
</li>
<?php } ?>
<?php if($_SESSION['project_methodology'] != 'scrum'){ ?>
<?php if($this->Format->isAllowed('Create Milestone',$roleAccess)){ ?>
<?php /*if($this->Format->isAllowed('Create Milestone',$roleAccess)){ ?>
<li class="qadd-tg-icon">
<a href="javascript:void(0)" onclick="setSessionStorage('Quick Links','Create Task Group');addEditMilestone('','','','','','');">
<i class="material-icons cmn-icon-prop">&#xE065;</i><?php echo __('Task Group');?>
</a>
</li>
<?php } ?>
<?php }*/ ?>
<?php } ?>
<?php if($GLOBALS['user_subscription']['subscription_id'] != CURRENT_EXPIRED_PLAN){ ?>
<?php if($this->Format->isAllowed('Manual Time Entry',$roleAccess)){ ?>
Expand Down
4 changes: 2 additions & 2 deletions app/View/Elements/header_inner_v2.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -316,15 +316,15 @@
</a>
</li>
<?php } ?>
<?php if($_SESSION['project_methodology'] != 'scrum'){ ?>
<?php /*if($_SESSION['project_methodology'] != 'scrum'){ ?>
<?php if($this->Format->isAllowed('Create Milestone',$roleAccess)){ ?>
<li class="qadd-tg-icon">
<a href="javascript:void(0)" onclick="setSessionStorage('Quick Links','Create Task Group');addEditMilestone('','','','','','');">
<i class="material-icons cmn-icon-prop">&#xE065;</i><?php echo __('Task Group');?>
</a>
</li>
<?php } ?>
<?php } ?>
<?php }*/ ?>
<?php if($GLOBALS['user_subscription']['subscription_id'] != CURRENT_EXPIRED_PLAN){ ?>
<?php if($this->Format->isAllowed('Manual Time Entry',$roleAccess)){ ?>
<li>
Expand Down
4 changes: 2 additions & 2 deletions app/View/Elements/maincontent_inner.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@
<?php } ?>
<?php } ?>
<?php //if($_SESSION['project_methodology'] != 'scrum'){ ?>
<?php if($this->Format->isAllowed('Create Milestone',$roleAccess)){ ?>
<?php /*if($this->Format->isAllowed('Create Milestone',$roleAccess)){ ?>
<li class="qadd-tg-icon hide-in-scrum" <?php if($_SESSION['project_methodology'] == 'scrum'){ echo "style='display:none;'";}?>>
<a href="javascript:void(0)" onclick="setSessionStorage('Left Panel New Button', 'Create Task Group');addEditMilestone('', '', '', '', '', '');">
<i class="material-icons cmn-icon-prop">&#xE065;</i><?php echo __('Task Group');?>
</a>
</li>
<?php } ?>
<?php }*/ ?>
<?php //} ?>
<?php if ($this->Format->isAllowed('Add New User',$roleAccess)) { ?>
<?php if($this->Format->isAllowed('Add New User',$roleAccess)){ ?>
Expand Down
6 changes: 3 additions & 3 deletions app/View/Elements/maincontent_inner_v2.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@
</li>
<?php } ?>
<?php } ?>
<?php //if($_SESSION['project_methodology'] != 'scrum'){ ?>
<?php if($this->Format->isAllowed('Create Milestone',$roleAccess)){ ?>
<?php if($_SESSION['project_methodology'] != 'scrum'){ ?>
<?php /*if($this->Format->isAllowed('Create Milestone',$roleAccess)){ ?>
<li class="qadd-tg-icon hide-in-scrum" <?php if($_SESSION['project_methodology'] == 'scrum'){ echo "style='display:none;'";}?>>
<a href="javascript:void(0)" onclick="setSessionStorage('Left Panel New Button', 'Create Task Group');addEditMilestone('', '', '', '', '', '');">
<i class="material-icons cmn-icon-prop">&#xE065;</i><?php echo __('Task Group'); ?>
</a>
</li>
<?php } ?>
<?php */} ?>
<?php //} ?>
<?php if ($this->Format->isAllowed('Add New User',$roleAccess)) { ?>
<?php if($this->Format->isAllowed('Add New User',$roleAccess)){ ?>
Expand Down
3 changes: 3 additions & 0 deletions app/webroot/js/script_v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -1691,6 +1691,9 @@ function routeOSHash() {
$(".caseMenuLeft ul li > a,.caseMenuLeft ul li > a,.projectReportMenuLeft ul li > a,.menu-logs ul li > a,.miscellaneous_li ul li > a,.miscellaneous_li ul li > a").removeClass(th_text_class_str);
$('#topactions').show();
$('.new_calendar_icon_on_top').show();
if($('.qadd-tg-icon').length){
$('.qadd-tg-icon').hide();
}
calendarView('hash');
break;
case 'calendar_timelog':
Expand Down

0 comments on commit ec81aeb

Please sign in to comment.