Skip to content

CmdrHandler doesn't automatically give permissions after assigning them to ranks / roles. #41

@Mophyr

Description

@Mophyr

Using CmdrHandler:GiveRobloxGroupRolePermissionGroups() or CmdrHandler:GiveRobloxGroupRankPermissionGroups() assigns permission command groups to specific roles / ranks.

It's expected that just calling those methods would automatically assign the permission groups to the joining players, as long as they have the associated role / rank, but that doesn't happen and the user needs to also call CmdrHandler.PermissionHandler:GivePlayerPermissionGroups() in order for commands to be usable.

There's also another issue which is the usage of roles themselves to give permission groups. That is because when calling Player:GetRoleInGroup(), it's returned the player rank instead of the role, for some reason. So since that isn't supported yet, I've added an error when trying to use CmdrHandler:GiveRobloxGroupRolePermissionGroups(). Once that has been fixed by Roblox, this should work as intended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions