Jump to content

Условия для масок доступа


Trotor
 Share

Recommended Posts

Доступ определённым группам:

<if test="$this->memberData['member_group_id'] == 1">{показ блока для группы 1}</else></if>

<if test="in_array( $this->memberData['member_group_id'], array( 1, 2 ) )">{показ блока для группы 1 или 2 }</else></if>

 

А как такое же но для масок доступа?

Link to comment
Share on other sites

<if test="IPSMember::checkPermissions('read', ид_форума) === true">Read</if>

 

Permissions:

view - Просмотр форума

read - Чтение тем

start

reply

download

upload

Спасибо большое.

Link to comment
Share on other sites

В смысле ид? Это маски доступа, для разных форумов они разные. В данном случае маска является read, а в зависимости от форума она может быть true, либо не быть false.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...