Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

CIRCLE / cloud

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 94
  • Merge Requests 10
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Merged
Merge request !84 opened May 30, 2014 by Őry Máté@orymate 
  • Report abuse
Report abuse

Allow creating group with org_id

fixes #164 (closed), #165 (closed), #72 (closed)

  • Discussion 4
  • Commits 17
  • Changes
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Őry Máté @orymate commented May 30, 2014
    Owner

    fixing #164 (closed) would also fit

    Edited Jun 02, 2014
    ~~fixing #164 would also fit~~
  • Bach Dániel
    @bachdaniel started a discussion on an old version of the diff Jun 05, 2014
    circle/dashboard/views.py
    1578 1620 return redirect(savedform.profile.get_absolute_url())
    1579 1621  
    1580 1622  
    1623 class GroupProfileUpdate(GroupCodeMixin, LoginRequiredMixin, UpdateView):
    1624
    1625 form_class = GroupProfileUpdateForm
    1626 model = Group
    1627
    1628 @classmethod
    1629 def get_available_group_codes(cls, request, extra=None):
    1630 result = super(GroupProfileUpdate, cls).get_available_group_codes(
    1631 request)
    1632 if extra and not extra in result:
    • Bach Dániel @bachdaniel commented Jun 05, 2014
      Owner

      not in?

      Edited Jun 05, 2014
      ~~not in?~~
    Please register or sign in to reply
  • Guba Sándor
    @gubasandor started a discussion on an old version of the diff Jun 06, 2014
    circle/dashboard/views.py
    100 conf = get_config(None, request)
    101 client = Saml2Client(conf, state_cache=state,
    102 identity_cache=IdentityCache(request.session),
    103 logger=logger)
    104 subject_id = _get_subject_id(request.session)
    105 identity = client.users.get_identity(subject_id,
    106 check_not_on_or_after=False)
    107 if identity:
    108 attributes = identity[0]
    109 owneratrs = getattr(
    110 settings, 'SAML_GROUP_OWNER_ATTRIBUTES', [])
    111 groups = []
    112 for i in owneratrs:
    113 try:
    114 groups += attributes[i]
    115 except KeyError:
    • Guba Sándor @gubasandor commented Jun 06, 2014
      Owner

      if i in attributes

      if i in attributes
    Please register or sign in to reply
  • Guba Sándor @gubasandor commented Jun 06, 2014
    Owner

    👍

    :+1:
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment
Assignee
No assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View labels
3
3 participants
Reference: circle/cloud!84