$cur = common_current_user();
if (!$cur) {
- throw new ClientException('Access forbidden', true);
+ // TRANS: Client exception in autocomplete plugin.
+ throw new ClientException(_m('Access forbidden.'), true);
}
$this->groups=array();
$this->users=array();
print json_encode($result) . "\n";
}
}
+
+ /**
+ * Is this action read-only?
+ *
+ * @param array $args other arguments
+ *
+ * @return boolean is read only action?
+ */
+ function isReadOnly($args)
+ {
+ return true;
+ }
}