Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

What is jforum_role_values table?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can any one explain me the use of jforum_role_values table and how it is related to jforum_roles, users, groups, categories, forums tables?

Regards,
Satish.
[originally posted on jforum.net by nosaku]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The short answer is that jforum_roles define permissions to do things. These permissions are linked to groups.

Permissions can be defined as a global permission (e.g. admin permission) or be tied to a specific jForum "part" (e.g., a category or forum). The jforum_role_values table is used to tie the permission to a specific "part". If a permission, like the permission to view a forum (perm_forum), applies to a part, there will be a set of matching role_value entries where the role_value is the forum id. Similarly, if the permission applies to a category, the role_value will be the category id.

With older versions (prior to 2.1.8), there was a flag to determine is this permission allowed or not. This was dropped with 2.1.8.. I *THINK* the default is to use the "deny if not allowed (in roles/role_values)".. but there may be some permission specific variations.. (e.g., allow if not denied...).
[originally posted on jforum.net by monroe]
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic