Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Ability to restrict the time information shown for the issue

web-app

A new permission to show the time information would be useful. see http://gemini.countersoft.com/Default.aspx?p=2&i=604 for comments on it.

Simon@MailboxPro
· 1
Simon@MailboxPro
Replies (8)
helpful
0
not helpful

Noted, thanks.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Any news or feedback on this, it is quite an important issue for us. Would be great to see this change in the next 2.1 release.


Simon@MailboxPro
· 1
Simon@MailboxPro
helpful
0
not helpful

We have included it for 2.1.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Thanks thats great. In the mean time, i was trying to hide the time information for people outside our work network via IP address but with problems with our conveluted networking, they get assigned a local IP when accessing our bordermanager software.

I would like to be able to use one of the current permissions temporarily to hide this information, can you provide assistance in coding the following:

<%
If CurrentUser.HasPermission("ViewPrivateIssues") Then
%>
    <!-- Show HTML for the time logging (existing html in viewissue.aspx) -->
<%
End If
%>

Many thanks


Simon@MailboxPro
· 1
Simon@MailboxPro
helpful
0
not helpful

You need to get the current user, which is an instance of UserEN (c# code):

UserEN user = (UserEN)HttpContext.Current.User.Identity;

int issueID = Request["id"];

You will have to get the project id from the issue id using web services

Then you can test by:

if(user.CanViewPrivateIssues(projID))

{

}

 


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

In the aspx page, it does not know what a "UserEN" type is, how can i add a reference to the library for that aspx page? Also, i do not know how to reference web services through solely an aspx page, but can work around that. Referencing the UserEN is key though, is this possible?


Simon@MailboxPro
· 1
Simon@MailboxPro
helpful
0
not helpful

Fully qulify it: CounterSoft.GeminiLib.UserEN....


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Thanks for the help!

For other people reading this, i will post the code to help others (Its not an elegant solution, but we only have a small team. This is temporary until a new time time reporting permission is added)

string UserAccessList = "syates,nharris,dfraser,dpegg,akarim";
CounterSoft.GeminiLib.UserEN user;
user = (CounterSoft.GeminiLib.UserEN)HttpContext.Current.User.Identity;
if (UserAccessList.IndexOf(user.Name) > -1)
{
    //Show Time Reporting HTML here (or whateva html to show/hide)
}

obviously be careful what you remove as it may be required on the page - test fully after any changes!


Simon@MailboxPro
· 1
Simon@MailboxPro