}
+ /**
+ * Returns TRUE if the user as know as Administration FALSE otherwise
+ * @param $userId user id Auth
+ * @return bool
+ */
+ public function isAdministration ($userId){
+
+ $administration = $this->UserTypes->find("all")
+ ->select('id')
+ ->where(["cd = " => "Administration"])->first();
+ return $this->exists(["user_type_id"=> $administration->id,"id"=> $userId]);
+ }
+
public function findByType(Query $query, array $options)
{
$query->where([