Advertisement:

Author Topic: Permission to allow access to "Forum Maintenance"  (Read 4525 times)

Offline zach21uk

  • Jr. Member
  • **
  • Posts: 111
Re: Permission to allow access to "Forum Maintenance"
« Reply #20 on: February 01, 2012, 06:34:53 AM »
That means that the backup function was not converted to the new permission then.

I've double checked and I made all of the code changes mentioned here.   I don't think I've made a mistake.
« Last Edit: February 01, 2012, 08:38:01 AM by zach21uk »

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Permission to allow access to "Forum Maintenance"
« Reply #21 on: February 01, 2012, 11:39:02 AM »
I didn't say you made a mistake...I was saying one of the functions was missed. The function for backing up.

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,893
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Permission to allow access to "Forum Maintenance"
« Reply #22 on: February 01, 2012, 02:09:36 PM »
Sources/DumpDatabase.php

Find
Code: [Select]
// Administrators only!
if (!allowedTo('admin_forum'))

Replace
Code: [Select]
// Administrators only!
if (!allowedTo('access_maintenance') && !allowedTo('admin_forum'))
Michael Eshom
Cincy Space - now open!

Offline Matthew K.

  • SMF Super Hero
  • *******
  • Posts: 12,430
  • Gender: Male
    • matthew.kerle on Facebook
    • @matthew_kerle on Twitter
Re: Permission to allow access to "Forum Maintenance"
« Reply #23 on: February 01, 2012, 02:11:21 PM »
I do believe allowedTo(); accepts an array, does it not? Also...as discussed earlier in this topic, unless I am not thinking about it from the right angle (Not put much thought into it, to be honest) the admin_forum permission does not need to be in question as admins will always be able to access_maintenance.

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,893
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Permission to allow access to "Forum Maintenance"
« Reply #24 on: February 01, 2012, 02:32:34 PM »
I do believe allowedTo(); accepts an array, does it not? Also...as discussed earlier in this topic, unless I am not thinking about it from the right angle (Not put much thought into it, to be honest) the admin_forum permission does not need to be in question as admins will always be able to access_maintenance.

You're right about allowedTo accepting an array. Not sure why I didn't think of that :P

The "admin_forum" permission is "Administrate forum and database". That is not the same as the "Administrator" group, though it essentially gives you the same permissions.
Michael Eshom
Cincy Space - now open!