1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Prevent admins from hard deleting?

Discussion in 'XenForo Questions and Support' started by Glockie, Jun 28, 2015.

  1. Glockie

    Glockie Well-Known Member

    Hello,
    I have the option for admins to be unable to hard delete and as super mods, to also be unable to hard delete.
    or so I thought!

    An admin for various reasons actually hard deleted some things and of course I can't do anything about it.
    How do we stop administrators from actually hard deleting posts and threads, even if they themselves created the thread?

    It's been done even though I have the option disabled...
    Many thanks in advance.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    If you mean content on the front end (e.g. posts) it is permission controlled so set the permissions accordingly.
     
  3. Glockie

    Glockie Well-Known Member

    Okay thank you, yes threads have been removed and I am unimpressed.
    The usergroup admins must be edited or is it custom permissions?

    If I adjust the usergroup, can the superadmin still hard delete afterwards? (prob a silly question but still..)
     
  4. borbole

    borbole Well-Known Member

    If the permissions are set up correctly then they should not be able to hard delete threads. Anyway, if you want to expand on that it would require a custom mod.

    Another thing to consider is to clone threads of an usergroup to another forum, a backup forum if you will. So if anything like that happenes again, you can simply move the clone thread in place. It will require a custom addon as well.
     
  5. Glockie

    Glockie Well-Known Member

    If I set the usergroup administrator to be unable to hard delete things, can the superadmin - me, still do so?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    If you grant yourself the permission, yes.
     
  7. Martok

    Martok Well-Known Member

    You can still hard delete if you either set up another user group that you add yourself to (and anyone else you wish) that has the hard delete permission. I do it this way as there are several hard delete and other permissions that I have along with my partner. Alternatively, give yourself the hard delete permissions in ACP > Users > Moderators
     
    Last edited: Jun 28, 2015
  8. Glockie

    Glockie Well-Known Member

    Hmm okay will try, thank you.
    If I am already granted permissions by being super admin, do I need to do anything else?
    Thanks once again.
     
  9. Glockie

    Glockie Well-Known Member

    Yeah what's caught me is this;
    I've added someone in a usergroup 'admin'
    This person has then seen it within their own right to hard delete posts, without my knowledge!
    Even though, the option is unavailable to them?

    Amazed to say the least...
     
  10. Martok

    Martok Well-Known Member

    Being a super admin doesn't grant you any permissions on the forum. Being a moderator and/or being in a user group that has moderating permissions does.

    If the Admin user group has hard delete permissions then anyone in that group will be able to hard delete. If it doesn't have hard delete permissions then a user in that group can't hard delete from permissions assigned in that group. If they can hard delete, they have gained those permissions from elsewhere. You need to determine where you have assigned those permissions. Is it from another user group, or have you assigned the permissions in ACP > Users > Moderators?
     
  11. Glockie

    Glockie Well-Known Member

    Yes I think it's from something else. Just checked and it seems to be assigned from a different usergroup.
    The only way to track it was by assigning a dummy account with the same permissions, and I managed to find it.

    Thank you for your input all.
     
  12. Glockie

    Glockie Well-Known Member

    @borbole thank you for the offer, but I don't think I need a custom mod for admin permissions.
    Thank you anyway. :)
     
  13. borbole

    borbole Well-Known Member

    In case permissions work ok then yes, you do not need any custom mod. I only suggested it in case you would have wanted to expand the permission system in that area further.
     
  14. Jeremy

    Jeremy XenForo Moderator Staff Member

    Just a note, if you give someone ACP access to manage users (and permissions), they can grant themselves permissions to hard delete and remove them afterwards.
     
    Glockie likes this.
  15. Glockie

    Glockie Well-Known Member

    Yes!! of course.... That's how they must be doing it.
    Okay time to adjust some settings I think! Thank you ;)
     

Share This Page