~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/userservice/__init__.py

  • Committer: Matt Giuca
  • Date: 2010-02-25 04:11:23 UTC
  • Revision ID: matt.giuca@gmail.com-20100225041123-2lyuju2e69o0577k
userservice: No longer allows creation of a project group for a solo projectset. This addresses Launchpad bug #527543.

Show diffs side-by-side

added added

removed removed

Lines of Context:
333
333
    projectset = req.store.get(ivle.database.ProjectSet, projectsetid)
334
334
    if projectset is None:
335
335
        raise BadRequest("Invalid projectsetid")
 
336
    if not projectset.is_group:
 
337
        raise BadRequest("Not a group project set")
336
338
    if 'admin_groups' not in projectset.offering.get_permissions(
337
339
        req.user, req.config):
338
340
        raise Unauthorized()