mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
By default, don't show apps user doesn't have access to any definitions for
This commit is contained in:
parent
ae035df727
commit
a0d7bde2fb
@ -371,8 +371,14 @@ class importexport_helper_functions {
|
||||
* @param string $_type
|
||||
* @return array $num => $appname
|
||||
*/
|
||||
public static function get_apps($_type) {
|
||||
return array_keys(self::get_plugins('all',$_type));
|
||||
public static function get_apps($_type, $ignore_acl = false) {
|
||||
$apps = array_keys(self::get_plugins('all',$_type));
|
||||
if($ignore_acl) return $apps;
|
||||
|
||||
foreach($apps as $key => $app) {
|
||||
if(!self::has_definitions($app, $_type)) unset($apps[$key]);
|
||||
}
|
||||
return $apps;
|
||||
}
|
||||
|
||||
public static function guess_filetype( $_file ) {
|
||||
|
Loading…
Reference in New Issue
Block a user