" ... practice makes perfect "      - stellentpmp aka Andrew
stellentpmp.blogspot.comContent Server
Showing posts with label UserAccounts. Show all posts
Showing posts with label UserAccounts. Show all posts

Wednesday, January 26, 2011

What's my exact dDocAccount access?

It's often helpful to know what access rights (RWDA) you have to account(s).  By default, "My Profile" only displays the account(s) that you have at least (R)ead access to.  A simple change to the user_info.htm template should clear things up (putting this in a custom component is a best practice, but won't be discussed here):

Around line 150, you will find:

<td colspan=2 nowrap><span class=infoLabel><$lc("wwAccounts")$></span></td>
<td colspan=2><span class=tableEntry><$if UserAccounts$><$UserAccounts$>
     <$else$><$lc("wwNoAccountsDefined")$><$endif$></span></td>
<td></td>


Insert the bold:

<td colspan=2 nowrap><span class=infoLabel><$lc("wwAccounts")$></span></td>
<td colspan=2><span class=tableEntry><$if UserAccounts$>
     <$rsMakeFromString("UserAccountsRS", UserAccounts)$>
     <$rsSort("UserAccountsRS", "row")$>
     <$accountOutput = ''$>
     <$loop UserAccountsRS$>
          <$if userHasAccessToAccount(row, 15)$>
          <$accountOutput = accountOutput & row & ' (RWDA)<br />'$>
          <$elseif userHasAccessToAccount(row, 7)$>
          <$accountOutput = accountOutput & row & ' (RWD)<br />'$>
          <$elseif userHasAccessToAccount(row, 3)$>
          <$accountOutput = accountOutput & row & ' (RW)<br />'$>
          <$elseif userHasAccessToAccount(row, 1)$>
          <$accountOutput = accountOutput & row & ' (R)<br />'$>
          <$endif$>
     <$endloop$>
     <$accountOutput$>
     <$else$><$lc("wwNoAccountsDefined")$><$endif$></span></td>
<td></td>


Good luck.