Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
User Access to Tiny File Manager
User Access to Tiny File Manager
I have changed the config.php for Tiny File Manager so it opens to the /Temp directory with:
$root_path = $_SERVER['DOCUMENT_ROOT'].'/NU/temp';
That works great. I have 2 users that are members of an Access Level called Global and the rest of users under Access Level Group called Others. Is it possible to give access to Access Level Global to the file Tiny File Manager and not the rest of the users without making them Admins?
Thanks
$root_path = $_SERVER['DOCUMENT_ROOT'].'/NU/temp';
That works great. I have 2 users that are members of an Access Level called Global and the rest of users under Access Level Group called Others. Is it possible to give access to Access Level Global to the file Tiny File Manager and not the rest of the users without making them Admins?
Thanks
-
- nuBuilder Team
- Posts: 4416
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 472 times
- Contact:
Re: User Access to Tiny File Manager
Untested, modify line 31 in config.php:
Replace 49... with the id of the Access Level that should have access to TFM.
Replace 49... with the id of the Access Level that should have access to TFM.
You do not have the required permissions to view the files attached to this post.
Re: User Access to Tiny File Manager
Hi Kevin, have amended config.php line 31 to:
if ($json['session']['global_access'] != 1 || $json['session']['zzzzsys_access_id'] !== '624c33c72b6047b') {
nuAuthFailed();
and it comes up with:
Sorry. Invalid session id
Thanks for your time.
if ($json['session']['global_access'] != 1 || $json['session']['zzzzsys_access_id'] !== '624c33c72b6047b') {
nuAuthFailed();
and it comes up with:
Sorry. Invalid session id
Thanks for your time.
-
- nuBuilder Team
- Posts: 4416
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 472 times
- Contact:
Re: User Access to Tiny File Manager
Thanks Kev1n, I take it it is line 28 of nuvendorlogin.php;
if ( $_user == $_SESSION['nubuilder_session_data']['GLOBEADMIN_NAME'] && $_extra_check == '1' ) {
Is GLOBEADMIN_NAME pulled from zzzzsys_session??
if ( $_user == $_SESSION['nubuilder_session_data']['GLOBEADMIN_NAME'] && $_extra_check == '1' ) {
Is GLOBEADMIN_NAME pulled from zzzzsys_session??
-
- nuBuilder Team
- Posts: 4416
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 472 times
- Contact:
Re: User Access to Tiny File Manager
You can run this query to check that
Code: Select all
SELECT * FROM `zzzzsys_session` WHERE `sss_access` like '%GLOBEADMIN_NAME%';
Re: User Access to Tiny File Manager
Hi Kev1n, still struggling with nuvendorlogin.php I have altered :
if ( $_user == $_SESSION['nubuilder_session_data']['GLOBEADMIN_NAME'] && $_extra_check == '1' ) {
to
if ( $_user == $_SESSION['nubuilder_session_data']['GLOBEADMIN_NAME'] || $_SESSION[''zzzzsys_access_id'] ['624c33c72b6047b'] && $_extra_check == '1' ) {
if ( $_user == $_SESSION['nubuilder_session_data']['GLOBEADMIN_NAME'] && $_extra_check == '1' ) {
to
if ( $_user == $_SESSION['nubuilder_session_data']['GLOBEADMIN_NAME'] || $_SESSION[''zzzzsys_access_id'] ['624c33c72b6047b'] && $_extra_check == '1' ) {
-
- nuBuilder Team
- Posts: 4416
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 74 times
- Been thanked: 472 times
- Contact:
Re: User Access to Tiny File Manager
Untested:
Code: Select all
if ( $result == 1 ) {
$recordObj = db_fetch_object($obj);
$logon_info = json_decode($recordObj->sss_access);
$_user = $logon_info->session->zzzzsys_user_id;
$_access_id = $logon_info->session->zzzzsys_access_id;
$_extra_check = $logon_info->session->global_access;
if (( $_user == $_SESSION['nubuilder_session_data']['GLOBEADMIN_NAME'] && $_extra_check == '1') || $_access_id == '624c33c72b6047b') {
$page = nuVendorGood($appId, $table);
} else {
$page = nuVendorBad($appId);
}
} else {
$page = nuVendorBad($appId);
}
Re: User Access to Tiny File Manager
Kev1n, Thanks for your time on this.
I have amended the nuvendorlogin.php to:
and the tinyfilemanager config.php to:
I now get "Sorry. Invalid session id" for both the Admin and users with Access.
If I alter the nuvenodlogin.php back Admin can run and see TinyFileManager ok. Presume I have messed up the nuvendorlogin.php line 29 somewhere, but I can't see where.
Thanks
I have amended the nuvendorlogin.php to:
and the tinyfilemanager config.php to:
I now get "Sorry. Invalid session id" for both the Admin and users with Access.
If I alter the nuvenodlogin.php back Admin can run and see TinyFileManager ok. Presume I have messed up the nuvendorlogin.php line 29 somewhere, but I can't see where.
Thanks
You do not have the required permissions to view the files attached to this post.