Commit 92d7863c authored by Raph El's avatar Raph El

Hotfix

parent 7e534537
......@@ -66,7 +66,7 @@ class Answer{
if(ctype_xdigit($ans)){
$ans=self::getById($ans);
$form = Form::getByIdMongo($ans["form"]);
$parent = Slug::getElementBySlug($form["id"]);
//$parent = Slug::getElementBySlug($form["id"]);
$userId=Yii::app()->session["userId"];
}
if($ans["user"] == $userId)
......@@ -78,6 +78,7 @@ class Answer{
return false;
}
public static function canAccess($answer, $form=null, $userId=null, $parentForm=null){
if(ctype_xdigit($answer)){
$answer=self::getById($answer);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment