Messages Inbox Outbox

This commit is contained in:
Paminger
2016-06-23 10:28:26 +02:00
parent ab4c8ac373
commit 4f14e7fa92
17 changed files with 196 additions and 26 deletions
+3 -3
View File
@@ -23,13 +23,13 @@ class Message_model extends DB_Model
if ($uid === $this->getUID())
{
if (! $this->fhc_db_acl->isBerechtigt('basis/message', 's'))
return $this->_error(lang('fhc_'.FHC_NORIGHT).' -> system/message', FHC_MODEL_ERROR);
return $this->_error(lang('fhc_'.FHC_NORIGHT).' -> basis/message', FHC_MODEL_ERROR);
}
// if different user, for reading messages from other users
else
{
if (! $this->fhc_db_acl->isBerechtigt('basis/message', 's'))
return $this->_error(lang('fhc_'.FHC_NORIGHT).' -> system/message:all', FHC_MODEL_ERROR);
return $this->_error(lang('fhc_'.FHC_NORIGHT).' -> basis/message:all', FHC_MODEL_ERROR);
}
// get Data
@@ -120,4 +120,4 @@ public function getMessagesByPerson($person_id, $all)
else
return $this->_error($this->db->error(), FHC_DB_ERROR);
}
}
}