コード例 #1
0
        public async Task <InstanceItem> GetInstanceFolderAsync(int id, bool fromAdminPortal = false)
        {
            if (fromAdminPortal)
            {
                await _privilegesManager.Demand(Session.UserId, InstanceAdminPrivileges.ViewProjects);
            }

            return(await _instanceRepository.GetInstanceFolderAsync(id, Session.UserId, fromAdminPortal));
        }