Trotor Posted February 17, 2014 Share Posted February 17, 2014 Доступ определённым группам:<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 More sharing options...
siv1987 Posted February 17, 2014 Share Posted February 17, 2014 Read Permissions:view - Просмотр форумаread - Чтение темstartreplydownloadupload 1 Link to comment Share on other sites More sharing options...
Trotor Posted February 18, 2014 Author Share Posted February 18, 2014 <if test="IPSMember::checkPermissions('read', ид_форума) === true">Read</if> Permissions:view - Просмотр форумаread - Чтение темstartreplydownloaduploadСпасибо большое. Link to comment Share on other sites More sharing options...
Trotor Posted February 18, 2014 Author Share Posted February 18, 2014 <if test="IPSMember::checkPermissions('read', 114) === true"> А можно вместо ида форума, ид самой маски доступа? Link to comment Share on other sites More sharing options...
siv1987 Posted February 18, 2014 Share Posted February 18, 2014 В смысле ид? Это маски доступа, для разных форумов они разные. В данном случае маска является read, а в зависимости от форума она может быть true, либо не быть false. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now