public void notify(XWikiNotificationRule rule, XWikiDocument newdoc, XWikiDocument olddoc, int event,
XWikiContext context)
{
boolean remove = false;
if (newdoc.getObject(getExtensionClassName()) != null) {
<BUG>if (newdoc.getObject(getExtensionClassName()).getStringValue("use").equals("always")) {
if (context.getWiki().getRightService().hasProgrammingRights(newdoc, context)) {</BUG>
this.getAlwaysUsedExtensions(context).add(newdoc.getFullName());
return;
} else {

public void notify(XWikiNotificationRule rule, XWikiDocument newdoc, XWikiDocument olddoc, int event,
XWikiContext context)
{
boolean remove = false;
if (newdoc.getObject(getExtensionClassName()) != null) {
if (newdoc.getObject(getExtensionClassName(), USE_FIELDNAME, "always", false) != null) {
if (context.getWiki().getRightService().hasProgrammingRights(newdoc, context)) {
this.getAlwaysUsedExtensions(context).add(newdoc.getFullName());
return;
} else {
