You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by vijay Si <st...@gmail.com> on 2007/08/16 09:04:55 UTC

CommonScreens.xml :

Hi

1) What does this line of code imply in

CommonScreens.xml file :
<set field="activeApp" value="catalogmgr" global="true"/>

2) How and where do i set permissions for my application

i am reffering to following piece of code

<section>
                            <!-- do check for CATALOG, _VIEW permission -->
                            <condition>
                                <if-has-permission permission="CATALOG"
action="_VIEW"/>
                            </condition>


Where is _VIEW permission set for CATALOG.

Thanks..

Re: CommonScreens.xml :

Posted by Jonathon -- Improov <jo...@improov.com>.
Hi Vijay,

 >> 1) What does this line of code imply in
 >>
 >> CommonScreens.xml file :
 >> <set field="activeApp" value="catalogmgr" global="true"/>

Seems the flag "activeApp" may no longer be in use.

See /framework/common/webcommon/includes/appbar.ftl . Find "<#if thisApp == contextPath>".

Jonathon

Gauri R wrote:
> Hi,
> 
> These permissions are setup in the security_group_permission  table/entity
> in the database.
> 
> The relationship is
> a USER in the USER_LOGIN table is associated with 1 or more security groups
> in the USER_LOGIN_SECURITY_GROUP table
> 
> The Security Groups are defined on the Security_Group table.
> Each security Group is further assigned permissions (this is on the
> security_group_permission table).
> 
> so in the eg you mention below, the permission you need to look for is
> "CATALOG_VIEW"
> look for a SecurityGroupId  which has this permission and look for a user
> which is associated with that id.
> 
> hope this helps.
> rgds.
> Gri.
> 
> On 8/16/07, vijay Si <st...@gmail.com> wrote:
>> Hi
>>
>> 1) What does this line of code imply in
>>
>> CommonScreens.xml file :
>> <set field="activeApp" value="catalogmgr" global="true"/>
>>
>> 2) How and where do i set permissions for my application
>>
>> i am reffering to following piece of code
>>
>> <section>
>>                            <!-- do check for CATALOG, _VIEW permission -->
>>                            <condition>
>>                                <if-has-permission permission="CATALOG"
>> action="_VIEW"/>
>>                            </condition>
>>
>>
>> Where is _VIEW permission set for CATALOG.
>>
>> Thanks..
>>
> 
> 
> ------------------------------------------------------------------------
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.484 / Virus Database: 269.12.4/969 - Release Date: 8/23/2007 4:04 PM


Re: CommonScreens.xml :

Posted by Gauri R <ga...@gmail.com>.
Hi,

These permissions are setup in the security_group_permission  table/entity
in the database.

The relationship is
a USER in the USER_LOGIN table is associated with 1 or more security groups
in the USER_LOGIN_SECURITY_GROUP table

The Security Groups are defined on the Security_Group table.
Each security Group is further assigned permissions (this is on the
security_group_permission table).

so in the eg you mention below, the permission you need to look for is
"CATALOG_VIEW"
look for a SecurityGroupId  which has this permission and look for a user
which is associated with that id.

hope this helps.
rgds.
Gri.

On 8/16/07, vijay Si <st...@gmail.com> wrote:
>
> Hi
>
> 1) What does this line of code imply in
>
> CommonScreens.xml file :
> <set field="activeApp" value="catalogmgr" global="true"/>
>
> 2) How and where do i set permissions for my application
>
> i am reffering to following piece of code
>
> <section>
>                            <!-- do check for CATALOG, _VIEW permission -->
>                            <condition>
>                                <if-has-permission permission="CATALOG"
> action="_VIEW"/>
>                            </condition>
>
>
> Where is _VIEW permission set for CATALOG.
>
> Thanks..
>