• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Can we enable submission views by User Groups?

Can we enable submission views by User Groups? 10 years 4 months ago #29805

  • djaber2000
  • djaber2000's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 3
I know we can limit the submission views (both Submission view and Managed directories) by User ID, and Login, but is it possible to use a Group ID so that submissions for users that belong to a specific group are visible for the users in that group?
The administrator has disabled public write access.

Can we enable submission views by User Groups? 10 years 4 months ago #29818

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
Although there is no built-in option to allow this scenario, you can achieve this scenario by modifying the source code of the component.

Basically, you will have to edit the following file:

\components\com_rsform\models\submissions.php

to be more exact, you will have to edit the following function:

function _buildQuery()

to be more precise, this part :
$userId = $this->params->def('userId', 0);
if ($userId == 'login')
{
	$user = JFactory::getUser();
	if ($user->get('guest'))
		$query .= " AND 1>2";
 
	$query .= " AND s.UserId='".(int) $user->get('id')."'";
}
elseif ($userId == 0)
{
	// Show all submissions
}
else
{
	$userId = explode(',', $userId);
	JArrayHelper::toInteger($userId);
 
	$query .= " AND s.UserId IN (".implode(',', $userId).")";
}

Component features can be requested here:
https://www.rsjoomla.com/feedback.html

The feedback section is one of the fastest ways to let our dev-team know what our customers would like to see in the future versions of the components. The stronger the community's response to a feedback, the faster it gets pushed on the to-do list.
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.
The following user(s) said Thank You: djaber2000

Can we enable submission views by User Groups? 10 years 3 months ago #30323

  • djaber2000
  • djaber2000's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 33
  • Thank you received: 3
Thank you very much for this, not sure how I missed it. I am going to implement this today. Really appreciate it!
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!