Version 4.6.0
This commit is contained in:
1 parent
f79dcf067a
commit
517a5e1f70
2036 files changed
+110041
-26162
No files matched your search
@@ -699,7 +699,13 @@ class _clubs extends \IPS\Api\Controller
|
||||
try
|
||||
{
|
||||
$class = \IPS\Request::i()->class;
|
||||
$node = $class::load( \IPS\Request::i()->id );
|
||||
|
||||
if( !is_subclass_of( $class, "\IPS\Node\Model" ) )
|
||||
{
|
||||
throw new \OutOfRangeException;
|
||||
}
|
||||
|
||||
$node = $class::load( (int) \IPS\Request::i()->id );
|
||||
|
||||
if ( !$node->club() or $node->club()->id !== $club->id )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user