diff --git a/application/models/person/Benutzer_model.php b/application/models/person/Benutzer_model.php
index c1e76ce38..eff1329a6 100644
--- a/application/models/person/Benutzer_model.php
+++ b/application/models/person/Benutzer_model.php
@@ -13,6 +13,11 @@ class Benutzer_model extends DB_Model
$this->hasSequence = false;
}
+ /**
+ * Gets active Benutzer from person_id
+ * @param $person_id
+ * @return object
+ */
public function getFromPersonId($person_id)
{
return $this->loadWhere(array('person_id' => $person_id, 'aktiv' => true));
diff --git a/system/dbupdate_3.3.php b/system/dbupdate_3.3.php
index 59dba9f9d..55a00500b 100644
--- a/system/dbupdate_3.3.php
+++ b/system/dbupdate_3.3.php
@@ -4503,6 +4503,20 @@ if($result = $db->db_query("SELECT 1 FROM system.tbl_app WHERE app='projektarbei
}
}
+// UPDATE Berechtigung für lehre.tbl_projektbetreuer für web user hinzufügen
+if($result = @$db->db_query("SELECT * FROM information_schema.role_table_grants WHERE table_name='tbl_projektbetreuer' AND table_schema='lehre' AND grantee='web' AND privilege_type='UPDATE'"))
+{
+ if($db->db_num_rows($result)==0)
+ {
+ $qry = "GRANT UPDATE ON lehre.tbl_projektbetreuer TO web;";
+
+ if(!$db->db_query($qry))
+ echo 'Projektbetreuer Berechtigungen: '.$db->db_last_error().'
';
+ else
+ echo '
Web User: update fuer lehre.tbl_projektbetreuer berechtigt';
+ }
+}
+
// *** Pruefung und hinzufuegen der neuen Attribute und Tabellen
echo '