Compare commits
2 Commits
d61216216a
...
a78b2051f1
Author | SHA1 | Date | |
---|---|---|---|
a78b2051f1 | |||
33841459d9 |
@ -41,7 +41,7 @@ class BookmarkController extends Controller
|
|||||||
$user=$pagewidget->getPage()->getUser();
|
$user=$pagewidget->getPage()->getUser();
|
||||||
if($user!=$this->getUser()) throw $this->createNotFoundException('Permission denied');
|
if($user!=$this->getUser()) throw $this->createNotFoundException('Permission denied');
|
||||||
}
|
}
|
||||||
else {
|
elseif($usage=="group") {
|
||||||
$groupentity=$this->getDoctrine()->getRepository("CadolesCoreBundle:Group")->find($group);
|
$groupentity=$this->getDoctrine()->getRepository("CadolesCoreBundle:Group")->find($group);
|
||||||
$usergroup=$this->getDoctrine()->getRepository("CadolesCoreBundle:UserGroup")->findoneby(["user"=>$this->getUser(),"group"=>$groupentity]);
|
$usergroup=$this->getDoctrine()->getRepository("CadolesCoreBundle:UserGroup")->findoneby(["user"=>$this->getUser(),"group"=>$groupentity]);
|
||||||
if(!$usergroup or $usergroup->getRolegroup()<50) throw $this->createNotFoundException('Permission denied');
|
if(!$usergroup or $usergroup->getRolegroup()<50) throw $this->createNotFoundException('Permission denied');
|
||||||
|
BIN
src/ninegate-1.0/web/uploads/icon/icon_nineschool.png
Normal file
BIN
src/ninegate-1.0/web/uploads/icon/icon_nineschool.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.9 KiB |
Loading…
x
Reference in New Issue
Block a user