SMFHacks.com

SMF Classifieds => Support => Topic started by: XHIBIT on July 04, 2013, 11:11:30 pm

Title: Admin permssions
Post by: XHIBIT on July 04, 2013, 11:11:30 pm
I just created a new category but Im not allowed to post listings there.
I have all of the possible permissions set for enable for my admin account that i use but still get this issue.
Ive even deleted my cache and cookies to no avail


*update
The problem is being caused by Senior member permissions. If they are allowed to view, bid and comment then the admin cannot post new listings


*Yes this is a confirmed bug.
The issue is if the admin is in the Senior member category due to posts...unless senior members can post listings then the admin cannot post listings.
Title: Re: Admin permssions
Post by: SMFHacks on July 05, 2013, 09:40:32 am
Are you having post count based groups? If so yes I believe they override the primary membergroup permissions
Title: Re: Admin permssions
Post by: XHIBIT on July 05, 2013, 10:36:53 am
Well isnt it sort of odd that the other groups ie
Newbie
Full member
Junior Member
Hero Member
Global Moderator
Hero Member
still allow the Admin to make listings without any issues ?
I have two newly created groups (Vendor) and (VIP Elite) which Im also allowed to list in and now this will prevent me from adding additional post based groups if I have to allow them permissions to list in order for the Admin to be able too.
My category permssions are membergroup specific
Title: Re: Admin permssions
Post by: SMFHacks on July 05, 2013, 11:40:33 pm
I could allow admins to always be allowed no matter what category permissions are set. to deny admins.
Title: Re: Admin permssions
Post by: XHIBIT on July 06, 2013, 05:40:15 pm
Yeah bro that would be awesome if you did....I went bananas for hours trying to figure out what the issue was until I forced myself to methodically recreate each and every permission. Plus we no longer have to allow permissions for particular groups just for the admin to list
Title: Re: Admin permssions
Post by: XHIBIT on July 12, 2013, 05:12:57 am
Yeah...I just ran into the same issue again with another listings related post I tried to do as an admin. Its a pain to redo every single permssion all over again only to find out admin still cant post until he finds the one membergroup causing the conflict
Title: Re: Admin permssions
Post by: SMFHacks on July 14, 2013, 12:17:31 pm
Hot fix for SMF 2.0.x
Open
Sources/Classifieds2.php
Find
Code: [Select]
function Classifieds_GetCatPermission($cat, $perm, $return = false, $checkpostGroup = true, $checkAdditonal = true, $groupID = 0)
{
global $smcFunc, $txt, $user_info, $user_settings;

Add after
Code: [Select]
    if (allowedTo('admin_forum'))
    {
        return true;
    }