Monotone-Parent: 3b8627a8b52c86d059ada9c0387459d8654bb482
Monotone-Revision: 66fe156475b1f789bc5d20c857350ca9afea9556 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-09T16:40:15 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
parent
b3bd3c5adf
commit
44190a2103
|
@ -1,5 +1,9 @@
|
||||||
2007-11-09 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
2007-11-09 Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
||||||
|
|
||||||
|
* UI/SOGoUI/UIxComponent.m ([UIxComponent -canCreateOrModify]):
|
||||||
|
new boolean accessor that determines whether someone can create
|
||||||
|
(i.e. modify a new entry) or modify an existing entry.
|
||||||
|
|
||||||
* SoObjects/SOGo/SOGoObject.m ([SOGoObject
|
* SoObjects/SOGo/SOGoObject.m ([SOGoObject
|
||||||
-lookupName:lookupNameinContext:localContextacquire:acquire]):
|
-lookupName:lookupNameinContext:localContextacquire:acquire]):
|
||||||
overriden method to bind looked up keys to So methods but by
|
overriden method to bind looked up keys to So methods but by
|
||||||
|
|
|
@ -158,25 +158,10 @@
|
||||||
protectedBy = "<public>";
|
protectedBy = "<public>";
|
||||||
pageName = "UIxContactView";
|
pageName = "UIxContactView";
|
||||||
};
|
};
|
||||||
/* delete = {
|
|
||||||
protectedBy = "View";
|
|
||||||
pageName = "UIxContactView";
|
|
||||||
actionName = "delete";
|
|
||||||
}; */
|
|
||||||
edit = {
|
edit = {
|
||||||
protectedBy = "Access Contents Information";
|
protectedBy = "<public>";
|
||||||
pageName = "UIxContactEditor";
|
pageName = "UIxContactEditor";
|
||||||
};
|
};
|
||||||
/* save = {
|
|
||||||
protectedBy = "View";
|
|
||||||
pageName = "UIxContactEditor";
|
|
||||||
actionName = "save";
|
|
||||||
};
|
|
||||||
write = {
|
|
||||||
protectedBy = "View";
|
|
||||||
pageName = "UIxContactEditor";
|
|
||||||
actionName = "write";
|
|
||||||
}; */
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -35,11 +35,13 @@
|
||||||
#import <NGExtensions/NSString+misc.h>
|
#import <NGExtensions/NSString+misc.h>
|
||||||
#import <NGExtensions/NSURL+misc.h>
|
#import <NGExtensions/NSURL+misc.h>
|
||||||
|
|
||||||
#import <SoObjects/SOGo/SOGoUser.h>
|
|
||||||
#import <SoObjects/SOGo/SOGoObject.h>
|
|
||||||
#import <SoObjects/SOGo/SOGoCustomGroupFolder.h>
|
|
||||||
#import <SoObjects/SOGo/NSCalendarDate+SOGo.h>
|
#import <SoObjects/SOGo/NSCalendarDate+SOGo.h>
|
||||||
#import <SoObjects/SOGo/NSString+Utilities.h>
|
#import <SoObjects/SOGo/NSString+Utilities.h>
|
||||||
|
#import <SoObjects/SOGo/SOGoUser.h>
|
||||||
|
#import <SoObjects/SOGo/SOGoObject.h>
|
||||||
|
#import <SoObjects/SOGo/SOGoContentObject.h>
|
||||||
|
#import <SoObjects/SOGo/SOGoCustomGroupFolder.h>
|
||||||
|
#import <SoObjects/SOGo/SOGoPermissions.h>
|
||||||
|
|
||||||
#import "UIxJSClose.h"
|
#import "UIxJSClose.h"
|
||||||
|
|
||||||
|
@ -423,6 +425,18 @@ static BOOL uixDebugEnabled = NO;
|
||||||
return jsClose;
|
return jsClose;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* common conditions */
|
||||||
|
- (BOOL) canCreateOrModify
|
||||||
|
{
|
||||||
|
SoSecurityManager *sm;
|
||||||
|
|
||||||
|
sm = [SoSecurityManager sharedSecurityManager];
|
||||||
|
|
||||||
|
return (![sm validatePermission: SoPerm_ChangeImagesAndFiles
|
||||||
|
onObject: [self clientObject]
|
||||||
|
inContext: context]);
|
||||||
|
}
|
||||||
|
|
||||||
/* SoUser */
|
/* SoUser */
|
||||||
|
|
||||||
- (NSString *) shortUserNameForDisplay
|
- (NSString *) shortUserNameForDisplay
|
||||||
|
|
|
@ -335,11 +335,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="buttons">
|
<div id="buttons">
|
||||||
<input
|
<var:if condition="canCreateOrModify"
|
||||||
type="submit"
|
><input
|
||||||
class="button"
|
type="submit"
|
||||||
label:value="Save"
|
class="button"
|
||||||
name="save:method" />
|
label:value="Save"
|
||||||
|
name="save:method" /></var:if>
|
||||||
<input
|
<input
|
||||||
type="submit"
|
type="submit"
|
||||||
class="button"
|
class="button"
|
||||||
|
|
Loading…
Reference in a new issue