How to disable 'detail' app access when no access granted?

I have a master/detail apps.
And i also prepare a user who has access to the ‘master’ app and not the ‘detail’

How come when i access the ‘master’ app, i can stil access the ‘detail’ apps where i have no access?

Below is my working doc
https://docs.google.com/document/d/1weFIV7md73Lq27R0FJ6RpSlOZCLkrOEvPp_ybBGDWwY/edit?usp=sharing

Thanks for your comments.

Access is granted on the highest level, that is from the menu level. So if you have a master-detail the detail is considered to belong to the master. So if you have access to the master you have access to the detail. You need to create a master-only page.

another sad news i got from SC :frowning:

i hope SC developer can hear me and provide such enhancement, which to make ‘detail’ app recognize the security as well rather just based on master app

is there any macro can retrieve what are the ‘detail’ app for the master app?
i am hoping to customize and hide the detail app if no access to them.

anyway to achieve this?

Reason i need this feature so desprately is because i wish to push SC to the limit and cater for following scenario

“I have a Master Employee app, it has detail apps (Job detail, Person detail, compensation, misc setup)”
Senior HR - can access Job, Person, Compensation
Junior HR - can access Job, Person
Compensation Manager - can access Job, Person, Compensation
SuperAdmin - all detail apps

And i also have a plan to MOD SC so it accept multiple security ‘Group’ instead of just one
It’s tedious to make each of them as a seperated master app. (hope it’s not the only workaround…)

No, look at sc_block_display(<block_name>, off) …

Hi Weilies,

I also would like that it would be possible to switch off the display of a page. At the moment it is the only possibility to switch of the block, as Reinhard mentioned, or having the same form twice, one time with, the other without the ‘secret’-page.

The option to switch off the block will show a blank page to the ones, who are not allowed to access. This always will make them ask what is on that page :frowning:

BR

Eric

[QUOTE=EricB;25971]
The option to switch off the block will show a blank page to the ones, who are not allowed to access.[/QUOTE]

No, i have not a blank page with sc_block_display(<block_name>, off). Only the space between two tabs is marginal larger.

@RHS afaik a master detail is something else then having a block of data… The detail is a separate app running in an iframe in a master-detail relationship…

Albert, i have as example five master/detail forms (one master, five details). The details arranged with/in tabs. And this tabs i can show / not show with sc_display_block().

I know the show hide block feature, that’s why I need a macro to list out all the detail app, then by passing in master app name, I will be able to tell which detail app is accessible and trigger a show/hide detail.

But again, I can’t find such macro

Senior HR - can access Job, Person, Compensation
Junior HR - can access Job, Person
Compensation Manager - can access Job, Person, Compensation
SuperAdmin - all detail apps

Here is an example as Reinhard suggested!
Configure your detail blocks as tab.

In the onLoad event of your master.


switch([v_group])
{
    case 'Junior': //or whatever your group-id is
        sc_block_display(misc,off);
        sc_block_display(compensation,off);
        break;
    case 'Compensation':
    case 'Senior':
        sc_block_display(misc,off);
        break;
//  you can add as many cases as you need/want.
}

No need for a macro, it’s all there.

jsb

I don’t want to be the grumpy old man, but does that give you empty tabs? Then it would be an ugly option. But I never tried that. Or does it make a tab disappear?

No empty tabs, disabled tabs aren’t shown at all. I use it all the time.
As Reinhard mentioned the gap between visible tabs (if you have disabled tabs in between) is a fraction wider.

[QUOTE=jsbinca;25981]Here is an example as Reinhard suggested!
Configure your detail blocks as tab.

In the onLoad event of your master.


switch([v_group])
{
    case 'Junior': //or whatever your group-id is
        sc_block_display(misc,off);
        sc_block_display(compensation,off);
        break;
    case 'Compensation':
    case 'Senior':
        sc_block_display(misc,off);
        break;
//  you can add as many cases as you need/want.
}

No need for a macro, it’s all there.

jsb[/QUOTE]

Is there a way to retrieve ‘detail’ apps which tagged to a master app by passing in master app name?
E.g.
sc_get_detail_app(‘PersonMaster’)
return array
[0] - PersonAddress
[1] - PersonPhone
[2] - PersonOtherTable…

No.
And there are no ‘tags’ either.
What purpose should it serve?

Logged user > Group > Master App access > findout if the user has access to the detail app or not (and perform show/hide block)
With this, i only hardcode the master app ONCE in Event.
Then i have multiple Group wihtout hardcode the Group into Event (as in your example above)

That’s why i hope to hv a macro to list detail app.

I have not hardcoded the rights for a given user group. I’am use my own security system and i can, as an example, set the rights for a tab to “no”. In this case i’am use sc_block_display(<block_name>, off) and the tab is not visible for this user group. Simple and effective …