Devices: Add view permission to Key Profiles button.
This commit is contained in:
@@ -58,7 +58,9 @@ else {
|
|||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo " <td align='right' nowrap='nowrap' valign='top'>\n";
|
echo " <td align='right' nowrap='nowrap' valign='top'>\n";
|
||||||
echo " <form method='get' action=''>\n";
|
echo " <form method='get' action=''>\n";
|
||||||
echo " <input type='button' class='btn' value='".$text['button-profiles']."' onclick=\"document.location.href='device_profiles.php';\">";
|
if (permission_exists('device_profile_view')) {
|
||||||
|
echo " <input type='button' class='btn' value='".$text['button-profiles']."' onclick=\"document.location.href='device_profiles.php';\">";
|
||||||
|
}
|
||||||
echo " <input type='text' class='txt' style='width: 150px' name='search' value='$search'>";
|
echo " <input type='text' class='txt' style='width: 150px' name='search' value='$search'>";
|
||||||
echo " <input type='submit' class='btn' name='submit' value='".$text['button-search']."'>";
|
echo " <input type='submit' class='btn' name='submit' value='".$text['button-search']."'>";
|
||||||
echo " </form>\n";
|
echo " </form>\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user