-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathdeveloper.fmfn
33 lines (26 loc) · 953 Bytes
/
developer.fmfn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* =====================================================
* developer ()
*
* RETURNS: Boolean result based on checking for a given
* account, privelege set or other critera -
* you decide (see notes at bottom).
* DEPENDANCIES: list.valueWithin()
* =====================================================
*/
Let ( [
//------------------------- VARIABLES
var.developers = List( ""; "Admin" ) // Add the names of the accounts which are valid developer accounts
];
//------------------------- RESULT
PatternCount ( ¶& var.developers &¶ ; ¶& Get ( AccountName ) &¶ )
or
Get ( PrivilegeSetName ) = "[Full Access]"
)
/*
Note: if you're paranoid about security, you need to
know that a super adept hacker would know how to scrape
variable values out of memory, despite not being shown
by FileMaker. Anything stored in global variables $$ can be
captured - although you REALLY have to know a lot to do it.
*/