• Resolved kastriotsula

    (@kastriotsula)


    I’m having a problem trying to get the user role name um_user(‘role_name’);

    // Check the status of the user
    um_fetch_user($userId);
    $isAdmin = um_user('administrator') === true; // is the user an admin?
    $isApproved = um_user('status') === 'approved'; // is the user approved?
    $userRole = um_user('role_name'); // the slug of the community role assigned to the user

    The part of admin works but with others role not.

    Can someone help me out?

    • This topic was modified 5 years, 3 months ago by kastriotsula.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Make a folder accessible to a specific role’ is closed to new replies.