}
function getDescription() {
- return _("List artifacts you have submitted or assigned to you, by project.");
+ return _("List artifacts you have submitted or assigned to you or you are monitoring, by project.");
}
+
+ function isAvailable() {
+ if (!forge_get_config('use_tracker')) {
+ return false;
+ }
+ foreach (UserManager::instance()->getCurrentUser()->getGroups(false) as $p) {
+ if ($p->usesTracker()) {
+ return true;
+ }
+ }
+ }
}
-
-?>
function getDescription() {
return _("List documents that you are currently monitoring, by project.<br />To cancel any of the monitored items just click on the trash icon next to the item label.");
}
+
+ function isAvailable() {
+ if (!forge_get_config('use_docman')) {
+ return false;
+ }
+ foreach (UserManager::instance()->getCurrentUser()->getGroups(false) as $p) {
+ if ($p->usesDocman()) {
+ return true;
+ }
+ }
+ }
}
-?>
}
return $ajax_url;
}
+
+ function isAvailable() {
+ if (!forge_get_config('use_forum')) {
+ return false;
+ }
+ foreach (UserManager::instance()->getCurrentUser()->getGroups(false) as $p) {
+ if ($p->usesForum()) {
+ return true;
+ }
+ }
+ }
}
-?>