Advertisement:

Author Topic: Custom Permissions  (Read 18544 times)

Offline Kays

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,973
  • Gender: Male
    • Kayssplace
Re: Custom Permissions
« Reply #20 on: April 19, 2013, 08:38:22 AM »
Hi, if you only want people with that permission to enter that page. Add the allowedTo() check for that permission before the call to that function.

Or after the globals are defined:

Code: [Select]
if (!allowedTo('seeThis'))
   return;

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Offline Kite

  • Newbie
  • *
  • Posts: 1
Re: Custom Permissions
« Reply #21 on: May 30, 2013, 04:25:55 AM »
Thanks for this mod, It is really helpful !

Do you think it can be possible to set specific subgroup ?

I want to create permissions in a new group called "website" and i don't want them to stay under the "Custom Permissions" group.

Thanks !

Offline Kays

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,973
  • Gender: Male
    • Kayssplace
Re: Custom Permissions
« Reply #22 on: June 01, 2013, 04:06:48 PM »
Hi, permissions apply to which ever group they are assigned to. If you have a problem with inherent permissions, then use deny.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Offline Branko.

  • SMF Hero
  • ******
  • Posts: 3,330
  • Gender: Male
  • U zemlji slijepih, jednooki je kralj
    • SATForum
Re: Custom Permissions
« Reply #23 on: August 07, 2013, 08:28:41 AM »
Hi Kays!
This mod is really useful for specific permissions. I want to create permission(s) for Profile view. This permission includes track IP/user and all subactions. In default installation, I can grant IP viewing option by Moderate forum members permission but it comes with extra rights. I want only IP viewing option with subactions.

Thanks in advance
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Offline Kays

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,973
  • Gender: Male
    • Kayssplace
Re: Custom Permissions
« Reply #24 on: August 08, 2013, 09:53:33 AM »
I think what you might need to do is to look for everywhere that the original permission is used and then change it in the appropriate spots to the new permission.

If at first you don't succeed, use a bigger hammer. If that fails, read the manual.
My Mods

Offline Chas Large

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,108
  • Gender: Male
  • Running 2.0.xx on Apache.
    • Chas.Large on Facebook
    • https://www.linkedin.com/in/charles-large-568ba213 on LinkedIn
    • @https://twitter.com/ on Twitter
    • Chas Large's Site
Re: Custom Permissions
« Reply #25 on: October 26, 2018, 02:51:57 AM »
Hi Kays,

Sorry to wake an old topic but I'd like to use this mod on 2.0.15.

It installs but the CUSTOM PERMISSIONS does not show, so I cannot add the permission I want, which is to remove the ability to send emails to any member that allows it for a specific post count group.

The standard permissions allows an ADMIN to turn off PM's but not emails. So a group may have restricted PM access but unrestricted email system access. An alternative would be to restrict the number of emails a certain group can send.

I assumed I could do that with this mod and would be obliged if you could kindly,

a. update the mod to work with 2.0.15 and above.

b. advise how to use the mod to achieve my goal.

Very much obliged for any help you - or indeed anyone else - can offer.

Thanks

Chas
My Modifications :)  My Forum

Please DO NOT PM me with support requests. Post the problem in the appropriate Support Board so everyone can benefit from the advice given.