- /**
- * These tasks are the core set of task titles
- *
- * @return array
- * the set of task titles
- */
- public static function &taskTitles() {
- self::tasks();
- $titles = array();
- foreach (self::$_tasks as $id => $value) {
- $titles[$id] = $value['title'];
+ if (!CRM_Core_Permission::check('delete in CiviGrant')) {
+ unset(self::$_tasks[self::TASK_DELETE]);
+ }
+
+ parent::tasks();