Skip to content

Unable to add new user group #4174

Closed
Closed

Description

@glitterdust

When expanding the group dropdown menu I can select from the list of already existing groups. The option to add a new group is however not available. I had this working in earlier versions of oC, but in 5.0.9 the option is gone.

I've tried Firefox, Chromium and Epiphany under Debian as well as Safari and Chrome in Mac OS with the same result.
owncloud-bug

Activity

  1. PVince81 commented on Nov 11, 2013

    @PVince81
    Contributor

    It works for me with ownCloud 5.0.12 and 5.0.13 on Chrome 30 and Firefox 25 (openSUSE 12.3).
    Server is openSUSE 12.3 as well.
    The "+ add group" appears.

    Can you try disabling any third party apps you have installed ?
    I suspect something might be messing up with the CSS / JS.

    If you feel adventurous, can you try and use the Chrome or Firefox inspector in the dropdown and see whether the "+ add group" is present but hidden ?

  2. PVince81 commented on Nov 11, 2013

    @PVince81
    Contributor

    Also, which language are you using ? (I can't recognize from the screenshot 😄)
    Try and switch back to English and see whether that works. (this is just to try and identify the bug)

  3. glitterdust commented on Nov 11, 2013

    @glitterdust
    Author

    I'm now running oC v. 5.10 and the problem is still the same. I tried changing to english interface but it made no difference.

    I've also looked at the HTML code but cant find the "+ add group" anywere. The code for the table cell is as follows:

    <td class="groups"><span><div class="multiselect button active down" style="min-width: 100px;"><span></span><span>▾</span></div><ul class="multiselectoptions down" style="top: 42.11312484741211px; left: 503.9881248474121px; width: 113px; max-height: 202.140625px;"><li class="checked"><input type="checkbox" id="ms22-option-admin" checked="checked"><label for="ms22-option-admin">
                            admin                   </label></li><li><input type="checkbox" id="ms22-option- medlem"><label for="ms22-option- medlem">
                             medlem                 </label></li><li><input type="checkbox" id="ms22-option- styrelse"><label for="ms22-option- styrelse">
                             styrelse                   </label></li></ul></span><select class="groupsselect" data-username="admin" data-user-groups="admin" data-placeholder="groups" title="Groups" multiple="multiple" data-msid="1" style="display: none;">
                                            <option value=" medlem">
                             medlem                 </option>
                                            <option value=" styrelse">
                             styrelse                   </option>
                                            <option value="admin">
                            admin                   </option>
                                    </select>
                </td>
    
  4. PVince81 commented on Nov 12, 2013

    @PVince81
    Contributor

    Ok thanks for the info. That's mysterious.
    Do you mean you're using 5.0.13 now (not 5.10) ?

    Have you tried disabling third party apps ?

  5. glitterdust commented on Nov 12, 2013

    @glitterdust
    Author

    I meant 5.0.10. I have no third party apps activated.

  6. PVince81 commented on Nov 12, 2013

    @PVince81
    Contributor

    Oops sorry, I mixed up @glitterdust with @Giammi (both green avatars and first letter is "g").
    @Giammi is the one with 5.0.12.
    Okay, so two people with that issue.

    Going to check the code and find some clues for what could potentially hide this.

  7. PVince81 commented on Nov 12, 2013

    @PVince81
    Contributor

    It looks like the only condition that removes the "+ add group" is when the JS variable "isadmin" is false.
    Can you please open a Firefox/Chrome console and type in:

    isadmin
    

    The output should normally be "true".

    I suspect that on your system, for some yet unknown reason, "isadmin" might be false.

  8. glitterdust commented on Nov 12, 2013

    @glitterdust
    Author

    Yes, it's true. That it's false I mean. :)
    So what does that mean? According to my user list I'm in the admin group.

  9. PVince81 commented on Nov 12, 2013

    @PVince81
    Contributor

    Maybe the specific code that checks whether you're an admin is broken somehow.
    It will call the "inGroup" method of the user backend.

    What user backend are you using ?

  10. PVince81 commented on Nov 13, 2013

    @PVince81
    Contributor

    Note that if you are a "group admin" but not a "real" admin (a member of the group "admin") you won't be able to create new groups.

    Waiting for you feedback 😄

  11. PVince81 commented on Nov 13, 2013

    @PVince81
    Contributor

    @Giammi can you reupload the screenshot ? It seems you clicked "comment" too early while it was still uploading.

  12. PVince81 commented on Nov 13, 2013

    @PVince81
    Contributor

    I've tried on OC 5.0.12 and created another user, added that user in the group "admin".
    Then logged in as that user. I'm able to add groups.

    @Giammi what user backend are you using ?
    Did you try typing "isadmin" in the console while being on this specific page ?

    In OC 5.0.12 you should get either "true" or "false", but not "ReferenceError". This is strange.

  13. glitterdust commented on Dec 20, 2013

    @glitterdust
    Author

    I'm now in OC 6.0.0a and tried adding a user in the group "admin", like PVince81. After logging in as that user I'm still not able to add groups. isadmin return "false".

    Could it be that the permissions related to the admin group are misconfigured in some way?

  14. PVince81 commented on Jan 16, 2014

    @PVince81
    Contributor

    Not sure. Are you guys using the LDAP user backend or another non-default one ?

  15. PVince81 commented on Apr 3, 2014

    @PVince81
    Contributor

    @glitterdust @Giammi please tell me whether you are using the LDAP user backend or the default one ? Do you still see this issue in 6.0.2 ?

  16. glitterdust commented on Apr 24, 2014

    @glitterdust
    Author

    I'm using the default backend and OC 6.0.1 (Haven't been able to upgrade. But that's another issue.)

  17. glitterdust commented on Apr 25, 2014

    @glitterdust
    Author

    Same problem in 6.0.2.

  18. jancborchardt commented on Jun 6, 2014

    @jancborchardt
    Contributor

    This will be fixed with the new user management in ownCloud 7.

  19. locked as resolved and limited conversation to collaborators on Aug 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions