문제 설명
PHP 배열 값 저장 (PHP Save array value)
저는 Joomla 3.4.5에서 $user‑>groups를 사용하여 특정 사용자에게 할당된 그룹의 배열을 가져오고 있지만 대신 액세스 수준을 얻을 수 있는 방법이 있습니까? 그룹이 아닌 특정 할당된 ACL을 확인하고 싶습니다. J Docs에서 찾을 수 없었습니다.
고마워요!
참조 솔루션
방법 1:
I believe this is the proper way to retrieve a Joomla user's access levels:
$levels = JFactory::getUser()‑>getAuthorisedViewLevels();
print_r ($levels);
(by user5128127、user5128127)