mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +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
|
* @param string $_type
|
||||||
* @return array $num => $appname
|
* @return array $num => $appname
|
||||||
*/
|
*/
|
||||||
public static function get_apps($_type) {
|
public static function get_apps($_type, $ignore_acl = false) {
|
||||||
return array_keys(self::get_plugins('all',$_type));
|
$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 ) {
|
public static function guess_filetype( $_file ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user