Version 4.3.0
This commit is contained in:
1 parent
96997ddd8e
commit
fe1acf984a
1349 files changed
+116159
-67711
No files matched your search
@@ -30,15 +30,26 @@ class _File
|
||||
*/
|
||||
public function getItems()
|
||||
{
|
||||
if ( \IPS\downloads\Category::canOnAny( 'add' ) )
|
||||
if ( \IPS\downloads\Category::canOnAny( 'add', NULL, \IPS\Settings::i()->club_nodes_in_apps ? array() : array( array( 'cclub_id IS NULL' ) ) ) )
|
||||
{
|
||||
return array(
|
||||
'file_download' => array(
|
||||
'link' => \IPS\Http\Url::internal( "app=downloads&module=downloads&controller=submit&_new=1", 'front', 'downloads_submit' ),
|
||||
'title' => 'select_category',
|
||||
'extraData' => array( 'data-ipsDialog' => true, 'data-ipsDialog-size' => "narrow" )
|
||||
)
|
||||
);
|
||||
if ( !\IPS\Settings::i()->club_nodes_in_apps and $theOnlyNode = \IPS\downloads\Category::theOnlyNode() AND !\IPS\Member::loggedIn()->group['idm_bulk_submit'] )
|
||||
{
|
||||
return array(
|
||||
'file_download' => array(
|
||||
'link' => \IPS\Http\Url::internal( "app=downloads&module=downloads&controller=submit&do=submit&_new=1&category=" . $theOnlyNode->_id, 'front', 'downloads_submit' ),
|
||||
)
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
return array(
|
||||
'file_download' => array(
|
||||
'link' => \IPS\Http\Url::internal( "app=downloads&module=downloads&controller=submit&_new=1", 'front', 'downloads_submit' ),
|
||||
'title' => 'select_category',
|
||||
'extraData' => array( 'data-ipsDialog' => true, 'data-ipsDialog-size' => "narrow" )
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user