Lack of interest Can change the order of recovery of an integer permission

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

XenConcept

Well-known member
Hello,

I have an idea. Can change the order of recovery of an integer permission.

For reasons X we need to be able to recover a permission in descending order.

Example :

For a member it is allowed to create a conversation with 20 messages But for premium it is allowed with 10 messages.

That's the code I'm using :

PHP:
 public function pickPermissionIntegerPriorityValue(array $values, $permissionType)
    {
        $highest = 0;

        foreach ($values AS $value)
        {
            if ($value == -1)
            {
                return -1;
            }
            else if ($value > 0)
            {
                $highest = $value;
            }
        }

        return $highest;
    }

thank you for your understanding
 
Last edited:
Upvote 1
This suggestion has been closed. Votes are no longer accepted.
Back
Top Bottom