Compare commits

..

No commits in common. "a78b2051f1f161590eed36408b8b4cad61feec47" and "d61216216a06d13cfbafc98477302aa9e931cb05" have entirely different histories.

2 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class BookmarkController extends Controller
$user=$pagewidget->getPage()->getUser();
if($user!=$this->getUser()) throw $this->createNotFoundException('Permission denied');
}
elseif($usage=="group") {
else {
$groupentity=$this->getDoctrine()->getRepository("CadolesCoreBundle:Group")->find($group);
$usergroup=$this->getDoctrine()->getRepository("CadolesCoreBundle:UserGroup")->findoneby(["user"=>$this->getUser(),"group"=>$groupentity]);
if(!$usergroup or $usergroup->getRolegroup()<50) throw $this->createNotFoundException('Permission denied');

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB