Deprecated: Joomla\Input\Input implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /homepages/13/d380392445/htdocs/Jlive/libraries/vendor/joomla/input/src/Input.php on line 41

Deprecated: Return type of Joomla\Input\Input::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /homepages/13/d380392445/htdocs/Jlive/libraries/vendor/joomla/input/src/Input.php on line 170

Deprecated: Joomla\CMS\Input\Input implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /homepages/13/d380392445/htdocs/Jlive/libraries/src/Input/Input.php on line 31

Deprecated: Joomla\CMS\Input\Cookie implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /homepages/13/d380392445/htdocs/Jlive/libraries/src/Input/Cookie.php on line 21

Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /homepages/13/d380392445/htdocs/Jlive/libraries/src/Uri/Uri.php on line 141
How to show only projects which user has access - Macrotone Forum

Unknown Error 8192: KunenaControllerApplicationDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in libraries/kunena/controller/application/display.php on line 21


Unknown Error 8192: Automatic conversion of false to array is deprecated in libraries/kunena/route/route.php on line 437


Unknown Error 8192: ComponentKunenaControllerWidgetAnnouncementDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/widget/announcement/display.php on line 18


Unknown Error 8192: ComponentKunenaControllerTopicItemDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/item/display.php on line 25


Unknown Error 8192: Automatic conversion of false to array is deprecated in libraries/kunena/forum/category/category.php on line 415


Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /homepages/13/d380392445/htdocs/Jlive/libraries/src/Date/Date.php on line 112

Unknown Error 8192: Automatic conversion of false to array is deprecated in libraries/kunena/bbcode/bbcode.php on line 107

How to show only projects which user has access


Unknown Error 8192: ComponentKunenaControllerTopicItemActionsDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/item/actions/display.php on line 23


Unknown Error 8192: ComponentKunenaControllerTopicPollDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/poll/display.php on line 21


Unknown Error 8192: ComponentKunenaControllerTopicItemMessageDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/topic/item/message/display.php on line 23

9 years 11 months ago #1 by dmartel
In "Create an Issue", how can we show only projects which user has access in the combobox?

We have added a project and a user whose group do not have access to the project. But the project is shown in the combobox anyway.

Thank you.

David

Unknown Error 8192: ComponentKunenaControllerMessageItemActionsDisplay implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in components/com_kunena/controller/message/item/actions/display.php on line 25

Please Log in or Create an account to join the conversation.


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2070


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2070


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2115


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2022


Unknown Error 8192: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2070

9 years 11 months ago - 9 years 11 months ago #2 by chrisc
That is currently an open change request, which is on the list of things to do.

The projects list in the dropdown is built solely from the list of published projects.

In theory its easy to implement, BUT there has to be an allowance for guest users as well which complicates it all, hence the delay in implementation. Sorry.

How were you associating user groups to specific projects?

Regards

If you are using our extensions please leave a review at the JED: IP Mapping | Issue Tracker | JAudit | Password Control

Please Log in or Create an account to join the conversation.

9 years 6 months ago #3 by Thomas
I'm picking up this topic 'cause i have the same problem / question....

I want to configure a project that it is only visible by users / groups with the correct access.
For Example:
I have 2 groups ("group-A" and "group-B"), and 2 Projects ( "Project-1" and "Project-2).
Project-1 should only be visible for group-A, but not for group-B.
And Projekt-2 should only be visible for group-B, but not for group-A.

In reality i have of course more groups and more projects. But the 1:1 is always the same.

Is a configuration like that possible? and how?

Greetz
Thomas

Please Log in or Create an account to join the conversation.

9 years 6 months ago - 9 years 6 months ago #4 by chrisc

Unknown Error 8192: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2263


Unknown Error 8192: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in libraries/kunena/external/nbbc/src/BBCode.php on line 2263

I think I can see the problem. I need to add some additional checks in the query that produces the drop down list.
Will test out a solution today after I have tested it to make sure there are no adverse effects. It should be a simple change.

Edit the file administrator/components/com_issuetracker/models/fields/issuetrackerprojectfe.php.

Change the code (starting at line 63) so that it looks like the following:
      if ( $isadmin == 0 ) {
         $query .= ' WHERE a.state = 1 ';
      } else {
         $query .= ' WHERE a.state in (0,1) ';
      }
      
      $groups  = implode(',', $user->getAuthorisedViewLevels());
      $query  .= ' AND a.access IN ('.$groups.')';

      $query .= ' ORDER BY a.lft';

We have added the following two lines after line 67..
      $groups  = implode(',', $user->getAuthorisedViewLevels());
      $query  .= ' AND a.access IN ('.$groups.')';

Tested it out and it seems to resolve the problem and only displays projects for the groups to which the user is allocated.

Update: Have implemented the above in the 1.6.5 release, for when it is released. If you could also confirm that it works for you that would be useful.

Regards

If you are using our extensions please leave a review at the JED: IP Mapping | Issue Tracker | JAudit | Password Control

Please Log in or Create an account to join the conversation.

9 years 6 months ago #5 by Thomas
not really. May i do something wrong?...

I've changed the file as you command.
When i'm editing the project in the Joomla-Administrator-Area under Components > Issue Tracker > Projects, i can't see an option to limit the view to an specific group. I tried it with to different setting under the tab "Issue Permissions" that only group1 can see this project.

But whatever my configurations are... on the homepage, logged in as user from group2, on a menu item type "List all Projects" i really can see all, but with this user i shouldn't see the that project1.

Do i something wrong?

Greets
Thomas

Please Log in or Create an account to join the conversation.

9 years 6 months ago - 9 years 5 months ago #6 by chrisc
It is the users that are in the different groups,not the project. That would explain why you do not appear to see the difference.

If the project is within an access group that the user can see, then it would be visible.

Try something very simplistic as a test.

For example if we make one project visible only to registered users, if we try and create an issue as a guest user (i.e. not logged in) then that specific project would not be visible in the dropdown list. By default a project would be visible to teh 'public'access group.

Regards

If you are using our extensions please leave a review at the JED: IP Mapping | Issue Tracker | JAudit | Password Control

Please Log in or Create an account to join the conversation.

Time to create page: 0.161 seconds
Go To Top

Joomla! Debug Console

Session

Profile Information

Memory Usage

Database Queries