diff --git a/application/seeds/006_vorlage.php b/application/seeds/006_vorlage.php index 002cca77e..ce2b8d08b 100644 --- a/application/seeds/006_vorlage.php +++ b/application/seeds/006_vorlage.php @@ -15,12 +15,12 @@ class Seed_Vorlage echo "Seeding Standard templates (Vorlage) "; // OEen ohne Eltern holen $query = 'SELECT oe_kurzbz FROM public.tbl_organisationseinheit WHERE oe_parent_kurzbz IS NULL;'; - $oe = $this->db->query($query)->result(); + $oe = $this->fhc->db->query($query)->result(); // Insert Template MailRegistration $query= "INSERT INTO public.tbl_vorlage VALUES ('MailRegistration', 'eMail zur Registrierung', NULL, 'text/html', '{ \"\$schema\": \"http://json-schema.org/draft-03/schema#\", \"title\": \"Person\", \"type\": \"object\", \"properties\": { \"anrede\": { \"type\": \"string\", \"enum\": [ \"Herr\", \"Frau\" ], \"default\": \"Herr\" }, \"vorname\": { \"type\": \"string\", \"description\": \"Firstname\", \"minLength\": 2, \"default\": \"Vorname\" }, \"nachname\": { \"type\": \"string\", \"description\": \"Surename\", \"minLength\": 2, \"default\": \"Nachname\" }, \"code\": { \"type\": \"string\", \"description\": \"Accesscode\", \"minLength\": 6, \"default\": \"1q2w3e4r5t6z7u8i9o0\" }, \"link\": { \"type\": \"string\", \"description\": \"LoginURL\", \"minLength\": 6, \"default\": \"https://cis.fhcomplete.org/addon/aufnahme/cis/login/\" } }}'); "; - if (! $this->db->simple_query($query) + if (! $this->fhc->db->simple_query($query)) echo "Error adding Template MailRegistration!"; // Insert Vorlagetext @@ -32,7 +32,7 @@ class Seed_Vorlage

Unter folgenden Link können sie sich direkt für unser Service einloggen: {link}{code}

Mit freundlichen Grüßen,
FH Technikum Wien

', '$o->oe_kurzbz'); "; - if ($this->db->simple_query($query)) + if ($this->fhc->db->simple_query($query)) echo 'Added Tamplate MailRegistration for OE:'.$o->oe_kurzbz.' '; } diff --git a/system/checksystem.php b/system/checksystem.php index 86a221c94..c229a36fd 100644 --- a/system/checksystem.php +++ b/system/checksystem.php @@ -83,6 +83,7 @@ $berechtigungen = array( array('basis/firma','Firmenverwaltung'), array('basis/firma:begrenzt','Firmenverwaltung'), array('basis/infoscreen','Infoscreenverwaltung'), + array('basis/message','Nachrichten'), array('basis/moodle','basis/moodle'), array('basis/news','Newsverwaltung'), array('basis/notiz','Notizen'),