|
a/Allura/allura/app.py |
|
b/Allura/allura/app.py |
|
... |
|
... |
206 |
def has_access(self, user, topic):
|
206 |
def has_access(self, user, topic):
|
207 |
'''Whether the user has access to send email to the given topic'''
|
207 |
'''Whether the user has access to send email to the given topic'''
|
208 |
return False
|
208 |
return False
|
209 |
|
209 |
|
210 |
def is_visible_to(self, user):
|
210 |
def is_visible_to(self, user):
|
211 |
'''Whether the user can view the app.'''
|
211 |
"""Return whether ``user`` can view this app.
|
|
|
212 |
|
|
|
213 |
:param user: user to check
|
|
|
214 |
:type user: :class:`allura.model.User` instance
|
|
|
215 |
:rtype: bool
|
|
|
216 |
|
|
|
217 |
"""
|
212 |
return has_access(self, 'read')(user=user)
|
218 |
return has_access(self, 'read')(user=user)
|
213 |
|
219 |
|
214 |
def subscribe_admins(self):
|
220 |
def subscribe_admins(self):
|
215 |
for uid in g.credentials.userids_with_named_role(self.project._id, 'Admin'):
|
221 |
for uid in g.credentials.userids_with_named_role(self.project._id, 'Admin'):
|
216 |
model.Mailbox.subscribe(
|
222 |
model.Mailbox.subscribe(
|