Compare commits

...

2 Commits

Author SHA1 Message Date
Arnaud Fornerot a78b2051f1 Merge branch 'master' into dist/envole/6/master 2021-04-21 09:18:28 +02:00
afornerot 33841459d9 bug ajout fav 2021-04-21 09:14:21 +02:00
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');
}
else {
elseif($usage=="group") {
$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.

After

Width:  |  Height:  |  Size: 5.9 KiB