eallen
Posts: 25
|
Posted: 03/11/2004, 4:02 PM |
|
Is there a way to determine at run-time the restrictions on a form, that is, what is the security group ID allowed access, delete, update etc. if restricted is set to "yes"?
thanks in advance
|
|
|
peterr
Posts: 5971
|
Posted: 03/11/2004, 5:23 PM |
|
No. This is a constant that never changes and there should not be a need to check it. In other words, if you specify that only GroupID "2" can access the page then this is what it is. In other words, determining the restrictions would always return "2" therefore there is nothing to determine.
Though possiby I misunderstood your question. It could be best if you view the generated code for the page and search for "CCSecurityAccessCheck" (in ASP). You will see there the exact restrictions assigned to the form. Those restrictions never change.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
eallen
Posts: 25
|
Posted: 03/11/2004, 6:37 PM |
|
I don't want to change the property, I want to test it to see what the value is.
The way to test the property is what I was looking for. Can I use the CCSecurityAccessCheck in event code to make a similar test or is that restricted? If so, what event would be the best to use to check this as earlier as possible?
TIA
|
|
|
peterr
Posts: 5971
|
Posted: 03/11/2004, 7:57 PM |
|
Hi,
I understand that you don't want to change the property. In my answer above I was trying to explain why there is no need to check its value. Basically, there is never a need to check the value of a constant because it is constant...
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
peterr
Posts: 5971
|
Posted: 03/11/2004, 8:00 PM |
|
BTW, I was referring to the fact that you can manually find CCSecurityAccessCheck in the generated code and see the values right there. There is no need to use an event for this or do this at run-time. Since the value is constant it will be the same at run-time as at the design-time.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com |
|
|
|