Tag "HasPermission" can result in sql fatal error in some cases

0 views
Skip to first unread message

Alexander Obuhovich

unread,
Sep 30, 2010, 2:33:24 PM9/30/10
to In-Portal Bugs
Tag "HasPermission" (only for category items) is used to check if current user has given permission. Usually it's used from inside of <inp2:m_if .../> tag like this:

<inp2:m_if check="n_HasPermission" permissions="NEWS.ADD|NEWS.ADD.PENDING">
show, when have permission
</inp2:m_if>

In "advanced" theme it's used from within <inp2:m_DefineElement .../> tag in lists and on category item details page.

However, when such tag is used after items were already printed, then it produces database query leading to fatal error.

Task: http://tracker.in-portal.org/view.php?id=876

Ready for testing.

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
incomplete_isloaded_reporting_for_lists.patch

Dmitry A.

unread,
Oct 3, 2010, 11:32:53 PM10/3/10
to In-Portal Bugs Team
Hi Alex,

Thanks for the patch - tested good!

DA.
>  incomplete_isloaded_reporting_for_lists.patch
> < 1KViewDownload

Phil -- wbtc.fr --

unread,
Oct 4, 2010, 3:07:11 AM10/4/10
to in-port...@googlegroups.com
good work Alex :-)

2010/10/4 Dmitry A. <dand...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.


Reply all
Reply to author
Forward
0 new messages