[TYPO3-core] Gremlin #1643: Shortcuts to pages are shown in the shortcut panel - although the user has no access to them

Michael Stucki michael at typo3.org
Fri Oct 28 15:36:18 CEST 2005


User writes:

If you provide Shortcuts for backend-users an icon for every shortcut
appears (and an entry in the selectbox, if you provide one).

If a user has no access to a given page, the icon for that page is visible
but not clickable. This could be confusing.

Links to restricted pages should not appear in the shortcut menu.


Solution:
- Fix the problem by reading the $id parameter from the referred URL.
- Additionally, make a simple check if the user can view the module that
  displays the link (by checking if the translation label is set! :-))


Notes:
While working on this, I've made many more changes to the whole shortcut
thing:

- The default label is tried to be read from a page ID or a fileadmin path
  (can be improved, see TODO comment)
- The groups have been changed from numbers to practically usable category
  names. They can be changed with User TSconfig (just set the group to a
  string instead to "1")
- New: By default, an admin can select from all groups but has to hide them
  explicitely. A user still sees only groups which are a) allowed and b) not
  empty.

Looking forward to your comments.

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_1643.diff
Type: text/x-diff
Size: 14558 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20051028/089be5d6/attachment.bin 


More information about the TYPO3-team-core mailing list