diff --git a/application/controllers/api/frontend/v1/Profil.php b/application/controllers/api/frontend/v1/Profil.php
index 63e86d1b2..a82b3ddfc 100644
--- a/application/controllers/api/frontend/v1/Profil.php
+++ b/application/controllers/api/frontend/v1/Profil.php
@@ -34,7 +34,8 @@ class Profil extends FHCAPI_Controller
'isMitarbeiter' => self::PERM_LOGGED,
]);
-
+
+ $this->load->library('PermissionLib');
$this->load->model('ressource/mitarbeiter_model', 'MitarbeiterModel');
$this->load->model('crm/Student_model', 'StudentModel');
@@ -69,6 +70,7 @@ class Profil extends FHCAPI_Controller
public function getView($uid)
{
$res = new stdClass();
+ $editAllowed = getAuthUID() == $uid || $this->permissionlib->isBerechtigt('admin');
// if parsing the URL did not found a UID then the UID of the logged in user is used
if ($uid == "Profil" || $uid == $this->uid) {
@@ -86,6 +88,8 @@ class Profil extends FHCAPI_Controller
$res->data = $this->studentProfil();
$res->data->pid = $this->pid;
}
+
+ $editAllowed = true;
}
// UID is availabe when accessing Profil/View/:uid
else {
@@ -112,6 +116,7 @@ class Profil extends FHCAPI_Controller
$res->data = $this->viewStudentProfil($uid);
}
}
+ $res->data->editAllowed = $editAllowed;
$this->terminateWithSuccess($res);
}
diff --git a/public/css/Cis4/Cis.css b/public/css/Cis4/Cis.css
index d7512f3a1..e9343497c 100644
--- a/public/css/Cis4/Cis.css
+++ b/public/css/Cis4/Cis.css
@@ -238,6 +238,22 @@ html {
background-color: var(--fhc-cis-menu-lvl-2-color-active) !important;
}
+.fhc-seperator {
+ position: relative;
+}
+
+.fhc-seperator::before {
+ content: '';
+ position: absolute;
+ top: 0;
+ left: 0;
+ margin-left: 12.5%;
+ width: 75%; /* Full width of the parent element */
+ height: 1px; /* Height of the border */
+ background: linear-gradient(to right, #ffffff, var(--fhc-cis-primary), #ffffff);
+ opacity: 0.8; /* Adjust opacity for a subtle fade effect */
+}
+
/* desktop */
@media (min-width: 992px) {
body {
diff --git a/public/css/components/dashboard/news.css b/public/css/components/dashboard/news.css
index 013401bc8..bb3bd0d62 100644
--- a/public/css/components/dashboard/news.css
+++ b/public/css/components/dashboard/news.css
@@ -18,7 +18,5 @@
}
.widgets-news .card-body{
-
- /*max-height: calc(var(--news-widget-height)*var(--fhc-dg-row-height)); */
- overflow:scroll;
-}
\ No newline at end of file
+ overflow: hidden;
+}
\ No newline at end of file
diff --git a/public/js/apps/Cis/Profil.js b/public/js/apps/Cis/Profil.js
index b19c448ae..592c27a37 100644
--- a/public/js/apps/Cis/Profil.js
+++ b/public/js/apps/Cis/Profil.js
@@ -4,6 +4,7 @@ import ViewStudentProfil from "../../components/Cis/Profil/StudentViewProfil.js"
import ViewMitarbeiterProfil from "../../components/Cis/Profil/MitarbeiterViewProfil.js";
import Loading from "../../components/Loader.js";
import Phrasen from "../../plugin/Phrasen.js";
+import { setScrollbarWidth } from "../../helpers/CssVarCalcHelpers";
Vue.$collapseFormatter = function (data) {
@@ -400,7 +401,7 @@ const profilApp = Vue.createApp({
`,
});
-
+setScrollbarWidth()
profilApp
.use(primevue.config.default, { zIndex: { overlay: 9999 } })
.use(Phrasen)
diff --git a/public/js/components/Cis/Menu.js b/public/js/components/Cis/Menu.js
index b3547e30a..35fe847a3 100644
--- a/public/js/components/Cis/Menu.js
+++ b/public/js/components/Cis/Menu.js
@@ -124,7 +124,7 @@ export default {