Skip to content

Commit

Permalink
wiki hack now in the wiki
Browse files Browse the repository at this point in the history
  • Loading branch information
Hervé Cauwelier committed Mar 2, 2011
1 parent 40a8c0c commit f3402fd
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions ws_neutral.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@
from ikaaro.user import User
from ikaaro.website import WebSite

# Special case for the Wiki
try:
from wiki import WikiFolder
except ImportError:
WikiFolder = None

# Import from itws
from OPML import RssFeeds
from about import AboutITWS
Expand Down Expand Up @@ -272,10 +266,7 @@ def get_article_class(self):
###########################################################################
def is_allowed_to_view(self, user, resource):
proxy = super(NeutralWS, self)
# XXX Temporary hack for Wiki
if WikiFolder and isinstance(resource, WikiFolder):
frontpage = resource.get_resource('FrontPage')
return proxy.is_allowed_to_view(user, frontpage)
# XXX Temporary hack for tracker
if isinstance(resource, (Tracker, Tracker.issue_class)):
# Tracker/Issue are visible if the user can edit them
return proxy.is_allowed_to_edit(user, resource)
Expand Down

0 comments on commit f3402fd

Please sign in to comment.