Bug(バグ) #1900 » sec_community.diff
lib/acl/opCommunityAclBuilder.class.php | ||
---|---|---|
$acl->allow('subadmin', null, 'edit');
|
||
$acl->allow('subadmin', null, 'delete');
|
||
$acl->allow('guest', null, 'view');
|
||
$acl->allow('alien', null, 'view');
|
||
$acl->allow('member', null, 'view');
|
||
return $acl;
|
||
}
|
||
... | ... | |
$acl = self::getAcl();
|
||
if ('public' === $resource->getConfig('public_flag'))
|
||
{
|
||
$acl->allow('guest', null, 'view');
|
||
}
|
||
else if ('open' === $resource->getConfig('public_flag'))
|
||
{
|
||
$acl->allow('alien', null, 'view');
|
||
}
|
||
else if ('auth_commu_member' === $resource->getConfig('public_flag'))
|
||
{
|
||
$acl->allow('member', null, 'view');
|
||
}
|
||
else
|
||
{
|
||
$event = new sfEvent(sfContext::getInstance(), 'op_acl.unknown_community_public_flag', array('public_flag' => $resource->getConfig('public_flag')));
|
||
sfContext::getInstance()->getEventDispatcher()->filter($event, $acl);
|
||
$acl = $event->getReturnValue();
|
||
}
|
||
foreach ($targetMembers as $member)
|
||
{
|