|
@@ -38,11 +38,12 @@ namespace OASystem.API.OAMethodLib
|
|
|
/// <summary>
|
|
|
/// 默认职位权限 View
|
|
|
/// </summary>
|
|
|
- public static bool DefaultPostAuth(int depId,int postId, int userId)
|
|
|
+ public static bool DefaultPostAuth(int depId,int postId, int userId,int createUserId)
|
|
|
{
|
|
|
if (depId < 1) return false;
|
|
|
if (postId < 1) return false;
|
|
|
if (userId < 1) return false;
|
|
|
+ if (userId < 1) return false;
|
|
|
|
|
|
List<DefaultPostPageAuthView> _defaultData = AppSettingsHelper.Get<DefaultPostPageAuthView>("DefaultPostPageData");
|
|
|
|
|
@@ -75,7 +76,7 @@ namespace OASystem.API.OAMethodLib
|
|
|
UId = userId,
|
|
|
SmId = it.SmId,
|
|
|
FId = it.FId,
|
|
|
- CreateUserId = 4, //管理员
|
|
|
+ CreateUserId = createUserId, //管理员
|
|
|
CreateTime = DateTime.Now,
|
|
|
IsDel = 0,
|
|
|
IsTemp = 1
|