Skip to content

Commit

Permalink
[GT-183] Update code to address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sae126V committed Sep 12, 2023
1 parent 66f0904 commit 287e34b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 3 additions & 3 deletions config/web_portal/menu.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
<link>index.php?Page_Type=Services</link>
</Services>

<ViewServiceTypes>
<show_on_instance>write_enabled</show_on_instance>
<ServiceTypes>
<show_on_instance>all</show_on_instance>
<name>Service Types</name>
<link>index.php?Page_Type=Service_Types</link>
</ViewServiceTypes>
</ServiceTypes>

<Scopes>
<show_on_instance>all</show_on_instance>
Expand Down
2 changes: 1 addition & 1 deletion config/web_portal/menu.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<xs:element name="Sites" type="showType" minOccurs="0"/>
<xs:element name="ServiceGroups" type="showType" minOccurs="0"/>
<xs:element name="Services" type="showType" minOccurs="0"/>
<xs:element name="ViewServiceTypes" type="showType" minOccurs="0"/>
<xs:element name="ServiceTypes" type="showType" minOccurs="0"/>
<xs:element name="Scopes" type="showType" minOccurs="0"/>
<xs:element name="RoleActionMappings" type="showType" minOccurs="0"/>
<xs:element name="AddSite" type="showType" minOccurs="0"/>
Expand Down
3 changes: 0 additions & 3 deletions htdocs/web_portal/controllers/admin/view_service_type.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ function view_service_type()
$identifier = Get_User_Principle();
$user = \Factory::getUserService()->getUserByPrinciple($identifier);

/**
* @var \User $user
*/
if ($user != null) {
$params['isUserAdmin'] = checkUserForAdminCredentials($user);
}
Expand Down

0 comments on commit 287e34b

Please sign in to comment.